summaryrefslogtreecommitdiff
path: root/hosts/common/security.nix
blob: 260538a181d07adaed39d30efc04ae89543142fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{wsl, ...}: {
  security = {
    apparmor.enable = !wsl;
    audit.enable = !wsl;
    auditd.enable = !wsl;
    rtkit.enable = true;
    sudo = {
      execWheelOnly = true;
      extraRules = [
        {
          users = ["root"];
          groups = ["root"];
          commands = ["ALL"];
        }
        {
          users = ["seth"];
          commands = ["ALL"];
        }
      ];
    };
    polkit.enable = true;
  };
}