mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
21 lines
411 B
Nix
21 lines
411 B
Nix
{
|
|
config,
|
|
modulesPath,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ "${modulesPath}/services/wpaperd.nix" ];
|
|
|
|
options.custom.services.wpaperd.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.wpaperd.enable {
|
|
services.wpaperd = {
|
|
enable = true;
|
|
settings.default = {
|
|
path = "${config.xdg.userDirs.pictures}/Wallpapers";
|
|
duration = "30m";
|
|
};
|
|
};
|
|
};
|
|
}
|