From cc7096662ed45c8a6883dec66dcafe7e2440c2b8 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 30 Nov 2025 14:37:46 +0300 Subject: [PATCH] add swww --- modules/home-manager/programs/default.nix | 1 + modules/home-manager/programs/swww.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 modules/home-manager/programs/swww.nix diff --git a/modules/home-manager/programs/default.nix b/modules/home-manager/programs/default.nix index 9977ab1..161cc6f 100644 --- a/modules/home-manager/programs/default.nix +++ b/modules/home-manager/programs/default.nix @@ -10,6 +10,7 @@ ./mpv.nix ./ssh.nix ./starship.nix + ./swww.nix ./tlrc.nix ./tmux.nix ./waybar.nix diff --git a/modules/home-manager/programs/swww.nix b/modules/home-manager/programs/swww.nix new file mode 100644 index 0000000..5f19f3c --- /dev/null +++ b/modules/home-manager/programs/swww.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.swww ]; + + systemd.user.services.swww = { + Unit = { + Description = "Wayland wallpaper daemon"; + PartOf = [ "graphical-session.target" ]; + After = [ "graphical-session.target" ]; + }; + + Service = { + ExecStart = "${pkgs.swww}/bin/swww-daemon"; + Restart = "on-failure"; + }; + + Install.WantedBy = [ "graphical-session.target" ]; + }; +}