dotfiles/modules/config/wallpapers.nix
2022-07-30 16:34:19 +02:00

31 lines
446 B
Nix

{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.wallpapers;
in
{
options.my.wallpapers = {
enable = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = mkIf cfg.enable {
home-manager.users.moritz.xdg = {
enable = true;
configFile = {
"wallpapers/" = {
source = ./wallpapers;
recursive = true;
};
};
};
};
}