laksjdalksjd

This commit is contained in:
2026-05-20 15:18:53 +02:00
parent 72a5ca6e5f
commit 775a2ee079
4 changed files with 22 additions and 4 deletions
+6 -3
View File
@@ -85,9 +85,12 @@
networking.firewall.logRefusedConnections = false; # too spammy, rotates dmesg too quickly
# nixos-rebuild switch --specialisation no-firewall
specialisation.no-firewall.configuration = {
networking.firewall.enable = false;
services.fail2ban.enable = false; # requires firewall
specialisation = lib.mkIf (config.networking.firewall.enable && !config.virtualisation.isVmVariant) {
no-firewall.configuration = {
networking.firewall.enable = false;
services.fail2ban.enable = false; # requires firewall
};
};
security.sudo.execWheelOnly = true;
+1
View File
@@ -4,6 +4,7 @@
type = lib.types.bool;
default = false;
};
# to be used with 'lib.mkIf (!config.virtualisation.isVmVariant)'
config.virtualisation.vmVariant = {
virtualisation.isVmVariant = true;
};