grimm-nixos-laptop/hardening/default.nix

29 lines
586 B
Nix
Raw Normal View History

2025-01-14 20:37:14 +01:00
{
lib,
pkgs,
...
}:
2025-01-03 15:57:36 +01:00
{
imports = [
2025-01-05 13:27:12 +01:00
./systemd
2025-01-03 15:57:36 +01:00
./ssh-as-sudo.nix
2025-01-10 12:50:01 +01:00
./apparmor
./opensnitch
./security.nix
2025-01-03 15:57:36 +01:00
];
2025-01-26 21:43:23 +01:00
specialisation.unhardened.configuration = {
services.opensnitch.enable = lib.mkForce false;
security.apparmor.enable = lib.mkForce false;
};
#
2025-01-03 15:57:36 +01:00
systemd.tpm2.enable = false;
systemd.enableEmergencyMode = false;
virtualisation.vswitch.enable = false;
2025-01-26 21:43:23 +01:00
services.resolved.enable = false;
2025-01-03 15:57:36 +01:00
security.unprivilegedUsernsClone = true;
2025-01-14 20:37:14 +01:00
environment.defaultPackages = lib.mkForce [ ];
environment.systemPackages = with pkgs; [ nano ];
2025-01-03 15:57:36 +01:00
}