move some config to user level module
This commit is contained in:
parent
86cb708ad7
commit
eada853044
6 changed files with 78 additions and 91 deletions
23
home/david/modules/wallpaper.nix
Normal file
23
home/david/modules/wallpaper.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
rootPath,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.david.wallpaper;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
david.wallpaper = {
|
||||
enable = lib.mkEnableOption "wallpaper";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file."wallpaper" = {
|
||||
force = true;
|
||||
recursive = true;
|
||||
source = rootPath + "/assets/wallpaper";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue