63 current 2024-02-29 23:59:32 24.05.20240228.9099616 6.6.18 *

This commit is contained in:
zackartz 2024-02-29 23:59:37 -05:00
parent 92138af624
commit a82745d399
2 changed files with 20 additions and 1 deletions

View file

@ -2,8 +2,16 @@
pkgs,
lib,
inputs,
theme,
...
}: {
}:
with lib; let
mkService = lib.recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["graphical-session.target"];
};
in {
imports = [./config.nix ./binds.nix];
wayland.windowManager.hyprland = {
enable = true;
@ -16,4 +24,14 @@
];
};
};
systemd.user.services = {
swaybg = mkService {
Unit.Description = "Wallpaper chooser";
Service = {
ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
Restart = "always";
};
};
};
}