From 4730b215fdc4095800fedfdf690c12fec994bb6b Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Wed, 2 Oct 2024 22:07:10 -0500 Subject: more reorganizing and modularizing --- modules/doas.nix | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 modules/doas.nix (limited to 'modules/doas.nix') diff --git a/modules/doas.nix b/modules/doas.nix deleted file mode 100644 index 2af324e..0000000 --- a/modules/doas.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ lib, config, ... }: { - options = { - doas.enable = lib.mkEnableOption "enables doas"; - sudo.enable = lib.mkEnableOption "enables sudo"; - }; - - config = lib.mkIf config.doas.enable { - security.doas.enable = true; - security.sudo.enable = config.sudo.enable; - security.doas.extraRules = [{ - groups = ["wheel"]; - keepEnv = true; - noPass = true; - }]; - }; -} -- cgit v1.2.3