Files
nixos/henrovnix_ok/home/desktop/rotating_wallpaper.nix
T
2026-03-02 13:37:55 +01:00

23 lines
555 B
Nix

{ config, pkgs, lib, flakeRoot, ... }:
let
userConfPath = "${config.home.homeDirectory}/nixos_conf/wallpaperstuff/wallpaper.conf";
in
{
home.packages = [ pkgs.wpaperd ];
systemd.user.services.wpaperd = {
Unit = {
Description = "wpaperd wallpaper daemon";
After = [ "default.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${userConfPath}";
Restart = "on-failure";
RestartSec = 1;
};
Install = {
WantedBy = [ "default.target" ];
};
};
}