default.nix (367B)
1 { 2 lib, 3 options, 4 config, 5 pkgs, 6 ... 7 }: 8 { 9 options.modules.doas = { 10 enable = lib.mkOption { 11 description = "Whether to enable the doas command."; 12 default = false; 13 type = lib.types.bool; 14 }; 15 }; 16 17 config = lib.mkIf config.modules.doas.enable { 18 security.doas = { 19 enable = true; 20 wheelNeedsPassword = true; 21 }; 22 }; 23 }