nixos/home/david/modules/wallpaper/default.nix

28 lines
418 B
Nix
Raw Normal View History

2025-01-16 19:38:54 +08:00
{
rootPath,
lib,
config,
...
}:
let
cfg = config.david.wallpaper;
in
{
options = {
david.wallpaper = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
};
};
};
config = lib.mkIf cfg.enable {
home.file."wallpaper" = {
force = true;
recursive = true;
2025-01-16 19:38:54 +08:00
source = rootPath + "/assets/wallpaper";
};
};
}