27 lines
418 B
Nix
27 lines
418 B
Nix
{
|
|
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;
|
|
source = rootPath + "/assets/wallpaper";
|
|
};
|
|
};
|
|
}
|