diff options
| author | seth <[email protected]> | 2023-02-18 05:13:27 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-18 05:13:27 -0500 |
| commit | 1d7b04a71c7222153ffa9cd48f73b51ea72204d1 (patch) | |
| tree | 3d794209be0e2311dc76337c09c2cb39c52f6afb /hosts/common/security.nix | |
| parent | 8a8059d9889afcbcd8a133b0b186e3a97ce7ac23 (diff) | |
major refactor
- `mkHost` now accepts an optional `specialArgs` argument to be passed to
`nixosSystem()`
- the `modules` argument for `mkHMUser` is now optional
Diffstat (limited to 'hosts/common/security.nix')
| -rw-r--r-- | hosts/common/security.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/hosts/common/security.nix b/hosts/common/security.nix index 04ae595..ed9be36 100644 --- a/hosts/common/security.nix +++ b/hosts/common/security.nix @@ -1,10 +1,8 @@ -{config, ...}: let - value = config.sys.wsl.enable; -in { +{wsl, ...}: { security = { - apparmor.enable = value; - audit.enable = value; - auditd.enable = value; + apparmor.enable = !wsl; + audit.enable = !wsl; + auditd.enable = !wsl; rtkit.enable = true; sudo = { configFile = '' |
