lib: Fix (again) issues with wireless

This commit is contained in:
PapaTutuWawa 2021-11-05 17:45:48 +01:00
parent 66fd0b41fd
commit d571efda1e
2 changed files with 1 additions and 5 deletions

View File

@ -41,7 +41,6 @@
}; };
hardware = { hardware = {
intel.enable = true; intel.enable = true;
wifi.enable = true;
mobile.enable = true; mobile.enable = true;
surface.enable = true; surface.enable = true;
}; };

View File

@ -38,7 +38,6 @@ in {
#interfaces.*.useDHCP = false; #interfaces.*.useDHCP = false;
hostName = config.ptw.system.hostName; hostName = config.ptw.system.hostName;
wireless.enable = (if wireless then true else lib.mkForce false);
hosts = lib.mkIf (!isVM) { hosts = lib.mkIf (!isVM) {
"${network.miku}" = [ "miku.local" ]; "${network.miku}" = [ "miku.local" ];
"${network.nishimiya}" = [ "nishimiya.local" ]; "${network.nishimiya}" = [ "nishimiya.local" ];
@ -157,9 +156,7 @@ in {
bluetooth = lib.mkIf wireless { bluetooth = lib.mkIf wireless {
enable = true; enable = true;
}; };
} // (if wireless then { };
wifiInterface = primaryInterface;
} else {});
nix.package = pkgs.nixUnstable; nix.package = pkgs.nixUnstable;
nix.extraOptions = '' nix.extraOptions = ''