From 411abef122ed1e553bede8a14468b9e27c12e66b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Wed, 26 Mar 2025 21:49:54 +0100 Subject: [PATCH] feat: pass some envvars to sudo --- SwarselSystems.org | 2 ++ profiles/nixos/common/polkit.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index 9a382a4..49f8f5f 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -5080,6 +5080,8 @@ Needed for control over system-wide privileges etc. Also I make sure that the ro sudo.extraConfig = '' Defaults env_keep+=SSH_AUTH_SOCK + Defaults env_keep+=XDG_RUNTIME_DIR + Defaults env_keep+=WAYLAND_DISPLAY ''; }; diff --git a/profiles/nixos/common/polkit.nix b/profiles/nixos/common/polkit.nix index 5c8332d..60a1a81 100644 --- a/profiles/nixos/common/polkit.nix +++ b/profiles/nixos/common/polkit.nix @@ -12,6 +12,8 @@ _: sudo.extraConfig = '' Defaults env_keep+=SSH_AUTH_SOCK + Defaults env_keep+=XDG_RUNTIME_DIR + Defaults env_keep+=WAYLAND_DISPLAY ''; };