Fix mkEnableOption semantics

This commit is contained in:
Gavin John
2025-01-20 15:23:48 -08:00
parent 1f2c2afc3c
commit e457be3a9c

View File

@@ -25,10 +25,10 @@
enableIPv6 = mkEnableOption "IPv6 rules" // { enableIPv6 = mkEnableOption "IPv6 rules" // {
default = config.networking.enableIPv6; default = config.networking.enableIPv6;
}; };
blockFakenews = mkEnableOption "Additionally block fakenews hosts."; blockFakenews = mkEnableOption "fakenews hosts entries";
blockGambling = mkEnableOption "Additionally block gambling hosts."; blockGambling = mkEnableOption "gambling hosts entries";
blockPorn = mkEnableOption "Additionally block porn hosts."; blockPorn = mkEnableOption "porn hosts entries";
blockSocial = mkEnableOption "Additionally block social hosts."; blockSocial = mkEnableOption "social hosts entries";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
networking.extraHosts = networking.extraHosts =