autologin module, fix awww

This commit is contained in:
Reid 2026-04-28 22:40:27 -07:00
parent 5b898f56ae
commit 3f8b6984b7
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
5 changed files with 51 additions and 4 deletions

View file

@ -18,9 +18,6 @@ in {
hm.services.playerctld.enable = true;
hm.programs.waybar = {
enable = true;
# essentially just the service
# peculiar how this is a program
systemd.enable = true;
package = cfg.package;
settings = let
@ -344,5 +341,24 @@ in {
];
};
};
hm.systemd.user.services.waybar = {
Unit = {
Description = "Waybar, a highly customizable wayland bar for wlroots compositors";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${lib.getExe cfg.package}";
Restart = "on-failure";
RestartSec = 5;
};
};
};
}