diff options
author | Minijackson <minijackson@riseup.net> | 2025-03-31 11:02:57 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2025-03-31 13:24:26 +0200 |
commit | af9d75446c8148ee778f3142218f61867238359b (patch) | |
tree | cdf2d6834daa4879b3aea82519f9288b6fd7fd06 | |
parent | 0b639efe3d386fba5cd32c1fa5bf8068910320ce (diff) | |
download | nixos-config-reborn-af9d75446c8148ee778f3142218f61867238359b.tar.gz nixos-config-reborn-af9d75446c8148ee778f3142218f61867238359b.zip |
niri: start gnome polkit agent
-rw-r--r-- | usecases/desktop/graphical/niri.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usecases/desktop/graphical/niri.nix b/usecases/desktop/graphical/niri.nix index 8550d4f..c41e734 100644 --- a/usecases/desktop/graphical/niri.nix +++ b/usecases/desktop/graphical/niri.nix | |||
@@ -26,5 +26,21 @@ in | |||
26 | environment.systemPackages = [ pkgs.walker ]; | 26 | environment.systemPackages = [ pkgs.walker ]; |
27 | 27 | ||
28 | home-manager.users.minijackson.xdg.configFile."niri/config.kdl".source = ./niri.kdl; | 28 | home-manager.users.minijackson.xdg.configFile."niri/config.kdl".source = ./niri.kdl; |
29 | |||
30 | systemd.user.services.polkit-gnome-authentication-agent = { | ||
31 | description = "GNOME Polkit authentication agent"; | ||
32 | |||
33 | wantedBy = [ "graphical-session.target" ]; | ||
34 | wants = [ "graphical-session.target" ]; | ||
35 | after = [ "graphical-session.target" ]; | ||
36 | |||
37 | serviceConfig = { | ||
38 | Type = "simple"; | ||
39 | ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; | ||
40 | Restart = "on-failure"; | ||
41 | RestartSec = 1; | ||
42 | TimeoutStopSec = 10; | ||
43 | }; | ||
44 | }; | ||
29 | }; | 45 | }; |
30 | } | 46 | } |