summaryrefslogtreecommitdiff
path: root/nixos/sudo.nix
blob: 5fa2727965f010ec9680ac7367bf96ff699fe4f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, config, ... }: let
	cfg = config.security._sudo;
in {
	options.security._sudo = {
		enable = lib.mkEnableOption "enables sudo";
	};

	#config = lib.mkIf cfg.enable {
	config = {  # TODO remove once can be built from flake w git
		security.sudo = {
			enable = true;
			wheelNeedsPassword = false;
		};
	};
}