new wallpaperthingie
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# file: configuration.nix snippet
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
@@ -22,6 +21,7 @@ in
|
||||
systemd.user.services.wpaperd = {
|
||||
description = "wpaperd wallpaper daemon";
|
||||
after = [ "default.target" ];
|
||||
enable = true; # <-- Must be set for user services
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
@@ -30,18 +30,17 @@ in
|
||||
RestartSec = 1;
|
||||
};
|
||||
|
||||
install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
# Optional: make it start on login (default.target)
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
# Optional: ensure the directory exists
|
||||
# Optional: ensure the directory exists at activation
|
||||
system.activationScripts.copyWallpaperConf = {
|
||||
text = ''
|
||||
echo "=== Ensuring wallpaper config exists ==="
|
||||
mkdir -p "${wallpaperDir}/pictures"
|
||||
if [ ! -f "${wallpaperConf}" ]; then
|
||||
touch "${wallpaperConf}"
|
||||
touch "${wallpaperConf}"
|
||||
fi
|
||||
echo "Done."
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user