From 333074fa8cdc6b81795d966a02ba09c9d7401837 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 8 Feb 2025 01:36:22 -0500 Subject: [PATCH] Disable sudo password prompt on desktop --- nixos/machines/crash/machine.nix | 1 + nixos/modules/desktop.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 nixos/modules/desktop.nix diff --git a/nixos/machines/crash/machine.nix b/nixos/machines/crash/machine.nix index c8f453d..940e90b 100644 --- a/nixos/machines/crash/machine.nix +++ b/nixos/machines/crash/machine.nix @@ -38,6 +38,7 @@ inputs.nixos-hardware.nixosModules.common-gpu-nvidia # Our modules (import ../../modules/base.nix {inherit inputs;}) + (import ../../modules/desktop.nix) (import ./configuration.nix) (import ./hardware.nix) (import ../../modules/user.nix { diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix new file mode 100644 index 0000000..32ae14d --- /dev/null +++ b/nixos/modules/desktop.nix @@ -0,0 +1,8 @@ +{ + config, + lib, + pkgs, + ... +}: { + security.sudo.wheelNeedsPassword = false; +}