nixos/networkmanager: trigger assertion instead of error
This commit is contained in:
parent
fc8233a64f
commit
df0301f59b
@ -174,7 +174,7 @@ in {
|
|||||||
|
|
||||||
assertions = [{
|
assertions = [{
|
||||||
assertion = config.networking.wireless.enable == false;
|
assertion = config.networking.wireless.enable == false;
|
||||||
message = "You can not use networking.networkmanager with services.networking.wireless";
|
message = "You can not use networking.networkmanager with networking.wireless";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
boot.kernelModules = [ "ppp_mppe" ]; # Needed for most (all?) PPTP VPN connections.
|
boot.kernelModules = [ "ppp_mppe" ]; # Needed for most (all?) PPTP VPN connections.
|
||||||
@ -239,7 +239,8 @@ in {
|
|||||||
# Turn off NixOS' network management
|
# Turn off NixOS' network management
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
wireless.enable = false;
|
# use mkDefault to trigger the assertion about the conflict above
|
||||||
|
wireless.enable = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.resumeCommands = ''
|
powerManagement.resumeCommands = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user