2022-07-15 13:11:54 +02:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|