add wallpapers, using git-lfs to manage it
This commit is contained in:
parent
c466bf231d
commit
bac7180c0c
6 changed files with 38 additions and 1 deletions
22
home/david/modules/wallpaper/default.nix
Normal file
22
home/david/modules/wallpaper/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue