Merge pull request #3078 from 30350n/consolidate-nix-flake-docs

Consolidate nix flake documentation in preparation for #3077
This commit is contained in:
Steven Black
2026-02-24 10:08:46 -05:00
committed by GitHub
+9 -17
View File
@@ -404,7 +404,15 @@ like this:
system = "<architecture>";
modules = [
hosts.nixosModule {
networking.stevenBlackHosts.enable = true;
networking.stevenBlackHosts = {
enable = true;
# optionally:
# enableIPv6 = true;
# blockFakenews = true;
# blockGambling = true;
# blockPorn = true;
# blockSocial = true;
};
}
];
};
@@ -412,22 +420,6 @@ like this:
}
```
The hosts extensions are also available with the following options:
```nix
{
networking.stevenBlackHosts = {
enableIPv6 = true;
blockFakenews = true;
blockGambling = true;
blockPorn = true;
blockSocial = true;
};
}
```
IPv6 rules are enabled by default when `networking.enableIPv6` is set to `true`.
## Updating hosts file on Windows
(NOTE: See also some third-party Hosts managers, listed below.)