move some config to user level module

This commit is contained in:
ulic-youthlic 2025-02-01 17:07:03 +08:00
parent 86cb708ad7
commit eada853044
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
6 changed files with 78 additions and 91 deletions

View 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";
};
};
}