Files
nixos/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix
T
2026-03-17 21:28:02 +00:00

31 lines
774 B
Nix

{ pkgs, home, ... }:
let
wallpaperSource = "${flakeRoot}/assets/hyprland/wallpaperstuff}";
wallpaperTarget = "$HOME/.config/wpaperd";
in
{
home.packages = [ pkgs.wpaperd ];
home.file.".config/wpaperd/wallpaper.toml".source = "${wallpaperSource}/wallpaper.toml";
home.file.".config/wpaperd/".source = wallpaperSource;
home.sessionVariables.DROIDNIX_PATH = "$HOME/Droidnix";
home.systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
after = [ "graphical.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${wallpaperTarget}/wallpaper.toml";
Restart = "on-failure";
RestartSec = 1;
};
wantedBy = [ "default.target" ];
enable = true;
};
}