From 35da9740509934077c7ded66a1157377abedd2e1 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Mon, 8 Apr 2024 15:58:45 +0200 Subject: refactor: move sudo to modules --- modules/nixos/sils/default.nix | 1 + modules/nixos/sils/sudo.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 modules/nixos/sils/sudo.nix (limited to 'modules') diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 2d15138..8ca6aa7 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -5,6 +5,7 @@ ./networking.nix ./nix.nix ./plymouth.nix + ./sudo.nix ./theming.nix ]; } diff --git a/modules/nixos/sils/sudo.nix b/modules/nixos/sils/sudo.nix new file mode 100644 index 0000000..3dfd79d --- /dev/null +++ b/modules/nixos/sils/sudo.nix @@ -0,0 +1,8 @@ +{...}: { + security.sudo = { + enable = true; + extraConfig = '' + Defaults lecture = never + ''; + }; +} -- cgit 1.4.1