mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Fix mkEnableOption semantics
This commit is contained in:
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user