From 07faeb945c6be911759718559f088411e66e8072 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Sun, 2 Jul 2023 09:58:35 +0100 Subject: [PATCH] Polkit configuration Improves polkit config in an attempt to get 1Password working with Qutebrowser. --- system/shared-configuration.nix | 12 +++++++++++- users/tsv/ssh/config | 6 ++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/system/shared-configuration.nix b/system/shared-configuration.nix index 4eeb7b8..98f420f 100644 --- a/system/shared-configuration.nix +++ b/system/shared-configuration.nix @@ -11,7 +11,17 @@ i18n.defaultLocale = "en_GB.UTF-8"; time.timeZone = "Europe/London"; - security.polkit.enable = true; +# security.polkit.enable = true; + systemd.user.services.polkit-gnome-authentication-agent-1 = { + Unit.Description = "polkit-gnome-authentication-agent-1"; + Service = { + Type = "simple"; + ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + }; # Enable sound. security.rtkit.enable = true; diff --git a/users/tsv/ssh/config b/users/tsv/ssh/config index 2702d6d..6224778 100644 --- a/users/tsv/ssh/config +++ b/users/tsv/ssh/config @@ -33,3 +33,9 @@ Host plan.foxsoft.net IdentityFile /home/tsv/.ssh/mrsk_foxsoft IdentitiesOnly yes +Host dms.foxsoft.net + User mrsk + HostName dms.foxsoft.net + IdentityFile /home/tsv/.ssh/mrsk_foxsoft + IdentitiesOnly yes +