Skip to content

Commit

Permalink
nixos/networkmanager: trigger assertion instead of error
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Jan 22, 2017
1 parent fc8233a commit df0301f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/services/networking/networkmanager.nix
Expand Up @@ -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.
Expand Down Expand Up @@ -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 = ''
Expand Down

0 comments on commit df0301f

Please sign in to comment.