From 53aea26dae6ff52c413fb90679a4192d260f200c Mon Sep 17 00:00:00 2001 From: zackartz Date: Wed, 17 Apr 2024 21:51:16 -0400 Subject: [PATCH] 401 current 2024-04-17 21:51:14 24.05.20240417.203fac8 6.8.6-zen1 nvidiaProduction nvidiaStable nvidiaVulkanBeta --- modules/rice/sway/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/rice/sway/default.nix b/modules/rice/sway/default.nix index 42aff34..2325ac3 100644 --- a/modules/rice/sway/default.nix +++ b/modules/rice/sway/default.nix @@ -1,4 +1,15 @@ { + pkgs, + lib, + theme, + ... +}: let + mkService = lib.recursiveUpdate { + Unit.PartOf = ["graphical-session.target"]; + Unit.After = ["graphical-session.target"]; + Install.WantedBy = ["graphical-session.target"]; + }; +in { wayland.windowManager.sway = { enable = true; # package = pkgs.swayfx; @@ -29,4 +40,14 @@ }; extraOptions = ["--unsupported-gpu"]; }; + + systemd.user.services = { + swaybg = mkService { + Unit.Description = "Wallpaper chooser"; + Service = { + ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}"; + Restart = "always"; + }; + }; + }; }