401 current 2024-04-17 21:51:14 24.05.20240417.203fac8 6.8.6-zen1 nvidiaProduction nvidiaStable nvidiaVulkanBeta

This commit is contained in:
zackartz 2024-04-17 21:51:16 -04:00
parent 7772d99eea
commit 53aea26dae
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA

View file

@ -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 = { wayland.windowManager.sway = {
enable = true; enable = true;
# package = pkgs.swayfx; # package = pkgs.swayfx;
@ -29,4 +40,14 @@
}; };
extraOptions = ["--unsupported-gpu"]; extraOptions = ["--unsupported-gpu"];
}; };
systemd.user.services = {
swaybg = mkService {
Unit.Description = "Wallpaper chooser";
Service = {
ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
Restart = "always";
};
};
};
} }