This commit is contained in:
nora 2025-12-29 19:13:06 +01:00
parent 36b34af61a
commit e0e17e4ff6

View file

@ -5,16 +5,16 @@ let
pkg = (import pkg = (import
(pkgs.fetchFromGitHub { (pkgs.fetchFromGitHub {
owner = "Noratrieb"; owner = "Noratrieb";
repo = "wallpapersc"; repo = "colouncher";
rev = "1943eec7c55a6ac9e9b143493d90f9870b31f23a"; rev = "cd0c16497756b758ee184063e119f1bec2127f18";
hash = "sha256-AI2tnRz/NVyn+LyljMSUbxanqHzpduV2ex3yvbX/GR0="; hash = "sha256-PcbYBojWMzb855u8+sk6hfu1hpHwInEcNBGk0/qqYtw=";
})) }))
{ inherit pkgs; }; { inherit pkgs; };
in in
{ {
systemd.user.services.wallpapersc = { systemd.user.services.colouncher = {
Unit = { Unit = {
Description = "wallpaper daemon"; Description = "Color-based program-launching wallpaper for Wayland";
PartOf = [ PartOf = [
config.wayland.systemd.target config.wayland.systemd.target
]; ];
@ -22,7 +22,7 @@ in
ConditionEnvironment = "WAYLAND_DISPLAY"; ConditionEnvironment = "WAYLAND_DISPLAY";
}; };
Service = { Service = {
ExecStart = "${pkg}/bin/wallpapersc"; ExecStart = pkgs.lib.getExe pkg;
Restart = "on-failure"; Restart = "on-failure";
}; };