summaryrefslogtreecommitdiff
path: root/modules/security/default.nix
blob: 06302eae7cb2f1e05eb0f64d57512563aacacf2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  config,
  lib,
  ...
}:
let
  inherit (lib.modules) mkForce;
in
{
  imports = [
    ./audit.nix
    ./doas.nix
    ./pki.nix
    ./polkit.nix
    ./sudo.nix
    ./tpm.nix
  ];

  security = {
    auditd.enable = true;
    rtkit.enable = mkForce config.services.pipewire.enable;
    virtualisation.flushL1DataCache = "always";
  };
}