From fb21a3d094d51eaa51310af29e47e28b6ace380e Mon Sep 17 00:00:00 2001 From: cydiralis Date: Sat, 28 Jun 2025 10:28:11 +0100 Subject: [PATCH] add polkit-gnome to all hosts (excl patio, as that has kde, so already by virtue has a polkit agent and co --- base/absolution/configuration.nix | 18 ++++++++++++++++++ base/adventurer/configuration.nix | 18 ++++++++++++++++++ base/apollo/configuration.nix | 18 ++++++++++++++++++ base/callisto/configuration.nix | 16 ++++++++++++++++ base/hassie/configuration.nix | 1 + base/hypermac/configuration.nix | 16 ++++++++++++++++ base/umbriel/configuration.nix | 1 + 7 files changed, 88 insertions(+) diff --git a/base/absolution/configuration.nix b/base/absolution/configuration.nix index 7024190..f69e50f 100644 --- a/base/absolution/configuration.nix +++ b/base/absolution/configuration.nix @@ -23,6 +23,24 @@ environment.pathsToLink = [ "/share/xdg-desktop-portal" ]; + 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; + }; + }; + }; + + security.polkit.enable = true; + security.sudo.package = pkgs.sudo.override { withInsults = true; }; programs.steam.extraCompatPackages = with pkgs; [ proton-ge-rtsp-bin ]; diff --git a/base/adventurer/configuration.nix b/base/adventurer/configuration.nix index 3f25455..8507e48 100644 --- a/base/adventurer/configuration.nix +++ b/base/adventurer/configuration.nix @@ -28,6 +28,24 @@ environment.pathsToLink = [ "/share/xdg-desktop-portal" ]; + 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; + }; + }; + }; + + security.polkit.enable = true; + security.sudo.package = pkgs.sudo.override { withInsults = true; }; # Configure network proxy if necessary diff --git a/base/apollo/configuration.nix b/base/apollo/configuration.nix index 9163b7b..f014014 100644 --- a/base/apollo/configuration.nix +++ b/base/apollo/configuration.nix @@ -25,6 +25,24 @@ environment.pathsToLink = [ "/share/xdg-desktop-portal" ]; security.sudo.package = pkgs.sudo.override { withInsults = true; }; + 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; + }; + }; + }; + + security.polkit.enable = true; + powerManagement.cpuFreqGovernor = "performance"; # Bootloader. boot.loader.systemd-boot.enable = true; diff --git a/base/callisto/configuration.nix b/base/callisto/configuration.nix index 0ccc9a7..3c5a477 100644 --- a/base/callisto/configuration.nix +++ b/base/callisto/configuration.nix @@ -28,6 +28,22 @@ environment.pathsToLink = [ "/share/xdg-desktop-portal" ]; + 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; + }; + }; + }; + services.gvfs.enable = true; security.sudo.package = pkgs.sudo.override { withInsults = true; }; programs.thunderbird.enable = true; diff --git a/base/hassie/configuration.nix b/base/hassie/configuration.nix index 138d3d6..096de17 100644 --- a/base/hassie/configuration.nix +++ b/base/hassie/configuration.nix @@ -119,6 +119,7 @@ }; }; + security.polkit.enable = true; # Enable the X11 windowing system. services.xserver.enable = true; diff --git a/base/hypermac/configuration.nix b/base/hypermac/configuration.nix index fec716c..c58ae2a 100644 --- a/base/hypermac/configuration.nix +++ b/base/hypermac/configuration.nix @@ -23,6 +23,22 @@ environment.pathsToLink = [ "/share/xdg-desktop-portal" ]; + 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; + }; + }; + }; + security.sudo.package = pkgs.sudo.override { withInsults = true; }; programs.adb.enable = true; diff --git a/base/umbriel/configuration.nix b/base/umbriel/configuration.nix index cbafb98..4f2bdbc 100644 --- a/base/umbriel/configuration.nix +++ b/base/umbriel/configuration.nix @@ -144,6 +144,7 @@ }; }; + security.polkit.enable = true; # Enable the X11 windowing system. services.xserver.enable = true;