about summary refs log tree commit diff
path: root/modules/doas/default.nix
blob: 9abc038214b28908bfe4237e3a85056a1e4957b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  pkgs,
  ...
}: {
  security = {
    sudo.enable = false;
    doas = {
      enable = true;
      extraRules = [
        {
          groups = ["wheel"];
          keepEnv = true;
          persist = true;
        }
      ];
    };
  };
}