nixos/networkmanager: trigger assertion instead of error

This commit is contained in:
Franz Pletz 2017-01-22 20:29:41 +01:00
parent fc8233a64f
commit df0301f59b
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
1 changed files with 3 additions and 2 deletions

View File

@ -174,7 +174,7 @@ in {
assertions = [{
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.
@ -239,7 +239,8 @@ in {
# Turn off NixOS' network management
networking = {
useDHCP = false;
wireless.enable = false;
# use mkDefault to trigger the assertion about the conflict above
wireless.enable = lib.mkDefault false;
};
powerManagement.resumeCommands = ''