dotfiles/modules/config/wallpapers.nix

25 lines
367 B
Nix

{ config
, lib
, ...
}:
with lib;
let
cfg = config.my.wallpapers;
in
{
options.my.wallpapers.enable = mkEnableOption "wallpapers";
config = mkIf cfg.enable {
home-manager.users.moritz.xdg = {
enable = true;
configFile = {
"wallpapers/" = {
source = ./wallpapers;
recursive = true;
};
};
};
};
}