23 lines
555 B
Nix
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" ];
|
|
};
|
|
};
|
|
}
|