summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2025-07-27 21:19:01 +0200
committernikstur <nikstur@outlook.com>2025-07-31 20:42:35 +0200
commitf5ffdbfeb0c0850ce76a9569096547e376f47a3e (patch)
tree72e0bdc017c51347bb46b24bb74cc4fb27684397
parentnixos/system-path: add corePackages option (diff)
downloadnixpkgs-f5ffdbfeb0c0850ce76a9569096547e376f47a3e.tar.gz
nixos/network-interfaces: add packages to corePackages
This allows users to override (i.e. exclude) these packages from their system closure if they don't need them.
-rw-r--r--nixos/modules/tasks/network-interfaces.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index d056cd45655b..c5421faf7c20 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -1767,17 +1767,19 @@ in
text = cfg.hostName + "\n";
};
- environment.systemPackages = [
- pkgs.host
- pkgs.hostname-debian
- pkgs.iproute2
- pkgs.iputils
- ]
- ++ optionals config.networking.wireless.enable [
- pkgs.wirelesstools # FIXME: obsolete?
- pkgs.iw
- ]
- ++ bridgeStp;
+ environment.corePackages = lib.mkOptionDefault (
+ [
+ pkgs.host
+ pkgs.hostname-debian
+ pkgs.iproute2
+ pkgs.iputils
+ ]
+ ++ optionals config.networking.wireless.enable [
+ pkgs.wirelesstools # FIXME: obsolete?
+ pkgs.iw
+ ]
+ ++ bridgeStp
+ );
# Wake-on-LAN configuration is shared by the scripted and networkd backends.
systemd.network.links = pipe interfaces [