From 8d003d17c29a220bee0363601f3d31175a9e51fe Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 27 Aug 2024 15:55:45 +0200 Subject: [PATCH] home/niri: Ensure that essential services are up --- home/config/nil/desktop.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index e02eefb..c627537 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -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 = {