Regenerated

This commit is contained in:
2026-03-29 13:03:31 +00:00
parent 44904832f1
commit d9fc466337
3 changed files with 339 additions and 318 deletions
+305 -298
View File
File diff suppressed because it is too large Load Diff
+17 -10
View File
@@ -2361,7 +2361,7 @@ Setting up wallpaper engine + wallpaper gui
{ config, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
username = config.defaultUser or "henrov";
homeDir = "/home/${username}";
scriptFile = "${homeDir}/Wallpapers/set-wallpapers-at-logon.sh";
in
@@ -2382,23 +2382,27 @@ in
systemd.user.services.swwwDaemon = {
description = "swww wallpaper daemon";
after = [ "graphical-session.target" ];
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.swww}/bin/swww daemon";
Restart = "always";
Type = "simple";
};
wantedBy = [ "default.target" ];
};
############################
# User service: run the script
# User service: run the wallpaper script
############################
systemd.user.services.wallpaperSync = {
description = "Run set-wallpapers-at-logon.sh";
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "export PATH=$PATH:/run/current-system/sw/bin /run/current-system/sw/bin/bash ${scriptFile}";
serviceConfig.Restart = "on-failure";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
# Ensure Nix binaries are in PATH
Environment = "PATH=/run/current-system/sw/bin:/usr/bin:/bin";
ExecStart = "${pkgs.bash}/bin/bash ${scriptFile}";
Restart = "on-failure";
};
};
############################
@@ -2412,13 +2416,16 @@ in
};
############################
# Ensure the script runs at login
# Run the script at login
############################
systemd.user.services.wallpaperSyncLogin = {
description = "Run wallpaperSync at login";
wantedBy = [ "default.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "export PATH=$PATH:/run/current-system/sw/bin /run/current-system/sw/bin/bash ${scriptFile}";
serviceConfig = {
Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin:/usr/bin:/bin";
ExecStart = "${pkgs.bash}/bin/bash ${scriptFile}";
};
};
}
#+END_SRC
@@ -1,7 +1,7 @@
{ config, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
username = config.defaultUser or "henrov";
homeDir = "/home/${username}";
scriptFile = "${homeDir}/Wallpapers/set-wallpapers-at-logon.sh";
in
@@ -22,23 +22,27 @@ in
systemd.user.services.swwwDaemon = {
description = "swww wallpaper daemon";
after = [ "graphical-session.target" ];
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.swww}/bin/swww daemon";
Restart = "always";
Type = "simple";
};
wantedBy = [ "default.target" ];
};
############################
# User service: run the script
# User service: run the wallpaper script
############################
systemd.user.services.wallpaperSync = {
description = "Run set-wallpapers-at-logon.sh";
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "export PATH=$PATH:/run/current-system/sw/bin /run/current-system/sw/bin/bash ${scriptFile}";
serviceConfig.Restart = "on-failure";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
# Ensure Nix binaries are in PATH
Environment = "PATH=/run/current-system/sw/bin:/usr/bin:/bin";
ExecStart = "${pkgs.bash}/bin/bash ${scriptFile}";
Restart = "on-failure";
};
};
############################
@@ -52,12 +56,15 @@ in
};
############################
# Ensure the script runs at login
# Run the script at login
############################
systemd.user.services.wallpaperSyncLogin = {
description = "Run wallpaperSync at login";
wantedBy = [ "default.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "export PATH=$PATH:/run/current-system/sw/bin /run/current-system/sw/bin/bash ${scriptFile}";
serviceConfig = {
Type = "oneshot";
Environment = "PATH=/run/current-system/sw/bin:/usr/bin:/bin";
ExecStart = "${pkgs.bash}/bin/bash ${scriptFile}";
};
};
}