dotfiles/modules/config/wallpapers/default.nix

25 lines
367 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config
, lib
, ...
}:
with lib;
let
cfg = config.my.wallpapers;
in
{
2022-10-15 20:00:09 +02:00
options.my.wallpapers.enable = mkEnableOption "wallpapers";
2022-07-15 13:11:54 +02:00
config = mkIf cfg.enable {
home-manager.users.moritz.xdg = {
enable = true;
configFile = {
"wallpapers/" = {
source = ./wallpapers;
recursive = true;
};
};
};
};
}