forked from mirrors/nixpkgs
nixos/networkmanager: fix merging options
Incorrect merging of modules resulted in dhcpcd being enabled causing flaky network connection. https://github.com/NixOS/nixpkgs/pull/64364 Fixing it uncovered an infinite recursion from the same commit, previously masked by the incorrect merge. We can just drop the `mkDefault` for `networking.wireless.enable` as it is already `false` by default. Closes: https://github.com/NixOS/nixpkgs/issues/72416
This commit is contained in:
parent
7827d3f449
commit
894fdfaf1f
1 changed files with 13 additions and 9 deletions
|
@ -456,15 +456,19 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Turn off NixOS' network management when networking is managed entirely by NetworkManager
|
# Turn off NixOS' network management when networking is managed entirely by NetworkManager
|
||||||
networking = (mkIf (!delegateWireless) {
|
networking = mkMerge [
|
||||||
useDHCP = false;
|
(mkIf (!delegateWireless) {
|
||||||
# Use mkDefault to trigger the assertion about the conflict above
|
useDHCP = false;
|
||||||
wireless.enable = mkDefault false;
|
})
|
||||||
}) // (mkIf cfg.enableStrongSwan {
|
|
||||||
networkmanager.packages = [ pkgs.networkmanager_strongswan ];
|
(mkIf cfg.enableStrongSwan {
|
||||||
}) // (mkIf enableIwd {
|
networkmanager.packages = [ pkgs.networkmanager_strongswan ];
|
||||||
wireless.iwd.enable = true;
|
})
|
||||||
});
|
|
||||||
|
(mkIf enableIwd {
|
||||||
|
wireless.iwd.enable = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
security.polkit.extraConfig = polkitConf;
|
security.polkit.extraConfig = polkitConf;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue