lib: Fix (again) issues with wireless
This commit is contained in:
parent
66fd0b41fd
commit
d571efda1e
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user