22 lines
375 B
Nix
22 lines
375 B
Nix
{ 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 = ./pic;
|
|
};
|
|
};
|
|
}
|