From d00d91723a060748cfa6dca42b2cdd1566a9e20c Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 21:56:18 +0000 Subject: [PATCH] new wallpaperthingie --- Droidnix/README.org | 23 ++++++++----------- .../out-of-tree/core/rotating_wallpaper.nix | 23 ++++++++----------- 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/Droidnix/README.org b/Droidnix/README.org index 19ee67ae7..89e228218 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -681,28 +681,25 @@ You can edit assets/hyprland/wallpaperstuff/wallpaper.toml to change settings Finally, it creates a systemd user service (wpaperd.service) that automatically starts wpaperd at login and keeps it running, using your override config so wallpapers rotate according to your settings. #+BEGIN_SRC nix :tangle generated/out-of-tree/core/rotating_wallpaper.nix :noweb tangle :mkdirp yes :eval never-html { config, pkgs, lib, flakeRoot, ... }: - let - # Pad naar de wallpaper config in de flake - wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; + userConfPath = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml"; in { - # Installeer wpaperd voor de gebruiker home.packages = [ pkgs.wpaperd ]; - - # Plaats de wallpaper.conf automatisch in $HOME/.config/wpaperd - home.file.".config/wpaperd/wallpaper.conf".source = wallpaperConf; - - # Systemd user service systemd.user.services.wpaperd = { - description = "wpaperd wallpaper daemon"; - wantedBy = [ "default.target" ]; - serviceConfig = { + Unit = { + Description = "wpaperd wallpaper daemon"; + After = [ "default.target" ]; + }; + Service = { Type = "simple"; - ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.conf"; + ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${userConfPath}"; Restart = "on-failure"; RestartSec = 1; }; + Install = { + WantedBy = [ "default.target" ]; + }; }; } #+END_SRC diff --git a/Droidnix/generated/out-of-tree/core/rotating_wallpaper.nix b/Droidnix/generated/out-of-tree/core/rotating_wallpaper.nix index 106f573e2..bad732a12 100644 --- a/Droidnix/generated/out-of-tree/core/rotating_wallpaper.nix +++ b/Droidnix/generated/out-of-tree/core/rotating_wallpaper.nix @@ -1,25 +1,22 @@ { config, pkgs, lib, flakeRoot, ... }: - let - # Pad naar de wallpaper config in de flake - wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; + userConfPath = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml"; in { - # Installeer wpaperd voor de gebruiker home.packages = [ pkgs.wpaperd ]; - - # Plaats de wallpaper.conf automatisch in $HOME/.config/wpaperd - home.file.".config/wpaperd/wallpaper.conf".source = wallpaperConf; - - # Systemd user service systemd.user.services.wpaperd = { - description = "wpaperd wallpaper daemon"; - wantedBy = [ "default.target" ]; - serviceConfig = { + Unit = { + Description = "wpaperd wallpaper daemon"; + After = [ "default.target" ]; + }; + Service = { Type = "simple"; - ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.conf"; + ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${userConfPath}"; Restart = "on-failure"; RestartSec = 1; }; + Install = { + WantedBy = [ "default.target" ]; + }; }; }