diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-14 13:37:57 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-14 13:37:57 -0500 |
| commit | aedd797d040c3c0aaf7676e206c73432f8d22c4d (patch) | |
| tree | 0c66a8fa8e83fb8796a976469c5c76ee6c8f8c41 /archetypes | |
| parent | 38980a9f11f451f9dd0583ffc54408c415702b69 (diff) | |
| download | nixos-aedd797d040c3c0aaf7676e206c73432f8d22c4d.tar.xz nixos-aedd797d040c3c0aaf7676e206c73432f8d22c4d.zip | |
profiles for desktop/headless disable ipv6 by default
Diffstat (limited to 'archetypes')
| -rw-r--r-- | archetypes/profiles/desktop/default.nix | 3 | ||||
| -rw-r--r-- | archetypes/profiles/headless/default.nix | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/archetypes/profiles/desktop/default.nix b/archetypes/profiles/desktop/default.nix index 66e1bf7..7cd7d48 100644 --- a/archetypes/profiles/desktop/default.nix +++ b/archetypes/profiles/desktop/default.nix @@ -48,6 +48,9 @@ SUBSYSTEM=="backlight", ACTION=="add", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness" ''; }; + + # Disable ipv6 by default + networking.enableIPv6 = mkDesktop false; }; homeConfig = { diff --git a/archetypes/profiles/headless/default.nix b/archetypes/profiles/headless/default.nix index 8464aff..5d3602b 100644 --- a/archetypes/profiles/headless/default.nix +++ b/archetypes/profiles/headless/default.nix @@ -19,6 +19,9 @@ services = { _ssh.enable = mkHeadless true; }; + + # Disable ipv6 by default + networking.enableIPv6 = mkHeadless false; }; homeConfig = { |
