aboutsummaryrefslogtreecommitdiff
path: root/modules/doas.nix
blob: d68bf6b7109fe4f6642c697e423049eb9071ddcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{
  config,
  lib,
  options,
  ...
}:
{
  security = {
    doas.extraRules = [ { groups = [ "wheel" ]; } ];
    sudo.enable = lib.mkDefault (!config.security.doas.enable);
  };
}