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