Working on reshuffling

This commit is contained in:
2026-03-19 06:52:10 +00:00
parent 12557c5a30
commit 4907087ff4
2 changed files with 62 additions and 36 deletions
+21 -8
View File
@@ -672,30 +672,43 @@ rotating_wallpaper.nix installs wpaperd and deploys your wallpaper files from th
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/modules/desktop/rotating_wallpaper.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, flakeRoot, ... }:
{ lib, ... }:
{
flake.nixosModules.rotating-wallpaper = { config, pkgs, lib, ... }:
let
# Pad naar de wallpaper config in de flake
wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml";
wallpaperConf = ../../../assets/hyprland/wallpaperstuff/wallpaper.toml;
in
{
# Installeer wpaperd voor de gebruiker
options.mySystem.desktop.wallpaper.enable =
lib.mkEnableOption "Enable rotating wallpaper via wpaperd";
config = lib.mkIf (config.mySystem.desktop.wallpaper.enable or false) {
# Home Manager context
home-manager.users.henrov = {
home.packages = [ pkgs.wpaperd ];
# Plaats wallpaper.toml automatisch in $HOME/.config/wpaperd
home.file.".config/wpaperd/wallpaper.toml".source = wallpaperConf;
home.file.".config/wpaperd/wallpaper.toml".source =
wallpaperConf;
# Systemd user service
systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.toml";
ExecStart =
"${pkgs.wpaperd}/bin/wpaperd --config ~/.config/wpaperd/wallpaper.toml";
Restart = "on-failure";
RestartSec = 1;
};
};
};
};
};
}
#+END_SRC
@@ -1,25 +1,38 @@
{ config, pkgs, lib, flakeRoot, ... }:
{ lib, ... }:
{
flake.nixosModules.rotating-wallpaper = { config, pkgs, lib, ... }:
let
# Pad naar de wallpaper config in de flake
wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml";
wallpaperConf = ../../../assets/hyprland/wallpaperstuff/wallpaper.toml;
in
{
# Installeer wpaperd voor de gebruiker
options.mySystem.desktop.wallpaper.enable =
lib.mkEnableOption "Enable rotating wallpaper via wpaperd";
config = lib.mkIf (config.mySystem.desktop.wallpaper.enable or false) {
# Home Manager context
home-manager.users.henrov = {
home.packages = [ pkgs.wpaperd ];
# Plaats wallpaper.toml automatisch in $HOME/.config/wpaperd
home.file.".config/wpaperd/wallpaper.toml".source = wallpaperConf;
home.file.".config/wpaperd/wallpaper.toml".source =
wallpaperConf;
# Systemd user service
systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.toml";
ExecStart =
"${pkgs.wpaperd}/bin/wpaperd --config ~/.config/wpaperd/wallpaper.toml";
Restart = "on-failure";
RestartSec = 1;
};
};
};
};
};
}