From 4cd69723028ad907333cfddf4aa9cb50cc823f2d Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Thu, 26 Mar 2026 17:55:09 -0500 Subject: [PATCH] added sudo and john nixos modules to p14s --- modules/hosts/john-p14s/default.nix | 13 ++++++++----- modules/programs/sudo.nix | 10 ++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 modules/programs/sudo.nix diff --git a/modules/hosts/john-p14s/default.nix b/modules/hosts/john-p14s/default.nix index 8bf7be4..5e95eee 100644 --- a/modules/hosts/john-p14s/default.nix +++ b/modules/hosts/john-p14s/default.nix @@ -10,10 +10,13 @@ modules = [ "${inputs.nixos-hardware}/lenovo/thinkpad/p14s" "${inputs.nixos-hardware}/lenovo/thinkpad/p14s/amd/gen4" - self.modules.nixos.p14sConfiguration - self.modules.nixos.gnome - # self.modules.nixos.greetd - # self.modules.nixos.niri - ]; + ] ++ (with self.modules.nixos; [ + p14sConfiguration + sudo + gnome + john + # greetd + # niri + ]); }; } \ No newline at end of file diff --git a/modules/programs/sudo.nix b/modules/programs/sudo.nix new file mode 100644 index 0000000..cf6bc10 --- /dev/null +++ b/modules/programs/sudo.nix @@ -0,0 +1,10 @@ +{ self, inputs, ... }: { + flake.modules.nixos.sudo = { + security.sudo-rs = { + enable = true; + execWheelOnly = false; + wheelNeedsPassword = false; + extraConfig = "Defaults timestamp_timeout=1440"; + }; + }; +} \ No newline at end of file