home/niri: Ensure that essential services are up

This commit is contained in:
Mikael 2024-08-27 15:55:45 +02:00
parent 09b3d09c85
commit 8d003d17c2
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -9,6 +9,7 @@ let
loginctl = osConfig.systemd.package + /bin/loginctl;
playerctl = config.services.playerctld.package + /bin/playerctl;
swaylock = lib.getExe config.programs.swaylock.package;
systemctl = osConfig.systemd.package + /bin/systemctl;
wpctl = osConfig.services.pipewire.wireplumber.package + /bin/wpctl;
xdg-open = pkgs.xdg-utils + /bin/xdg-open;
@ -258,6 +259,11 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
SSH_ASKPASS_REQUIRE = "force";
TERMINAL = kitty;
};
spawn-at-startup = [
{ command = [ systemctl "--user" "start" "swayidle.service" ]; }
{ command = [ systemctl "--user" "start" "waybar.service" ]; }
];
};
programs.swaylock = {