diff --git a/home/common/default.nix b/home/common/default.nix index f357625..ce99d09 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -9,11 +9,10 @@ }: { imports = [ - - ./programs - #../sway - ../hypr - + ./systemd-services + ./programs + #../sway + ../hypr ]; home = { diff --git a/home/common/systemd-services/default.nix b/home/common/systemd-services/default.nix new file mode 100644 index 0000000..bc4b9d8 --- /dev/null +++ b/home/common/systemd-services/default.nix @@ -0,0 +1,10 @@ +{ ... }: { + + imports = [ + ./polkit.nix + #./file.nix + ]; + + + +} diff --git a/home/common/systemd-services/polkit.nix b/home/common/systemd-services/polkit.nix new file mode 100644 index 0000000..27c7fc1 --- /dev/null +++ b/home/common/systemd-services/polkit.nix @@ -0,0 +1,24 @@ +{ ... }: { + + systemd = { + + user.services.polkit-gnome-authentication-agent-1 = { + + description = "polkit-gnome-authentication-agent-1"; + wantedBy = [ "graphical-session.target" ]; + wants = [ "graphical-session.target" ]; + after = [ "graphical-session.target" ]; + + serviceConfig = { + + Type = "simple"; + ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + + }; + }; + +}