more work on hosts/ and modules/config
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -1,8 +1,18 @@
|
||||
{
|
||||
imports = [
|
||||
./network-manager
|
||||
];
|
||||
networking = {
|
||||
hosts = import ./hosts.nix;
|
||||
networkmanager = {
|
||||
ethernet.macAddress = "stable";
|
||||
wifi = {
|
||||
macAddress = "random";
|
||||
scanRandMacAddress = true;
|
||||
};
|
||||
};
|
||||
wireless.iwd.settings = {
|
||||
settings = {
|
||||
General.AddressRandomization = "network";
|
||||
Settings.AlwaysRandomizeAddress = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./wireless-iwd.nix
|
||||
];
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
ethernet.macAddress = "stable";
|
||||
wifi = {
|
||||
macAddress = "random";
|
||||
scanRandMacAddress = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
{config, ...}: {
|
||||
networking = {
|
||||
networkmanager.wifi.backend =
|
||||
if config.module.config.useIwd
|
||||
then "iwd"
|
||||
else "wpa_supplicant";
|
||||
wireless.iwd = {
|
||||
enable = config.module.config.useIwd;
|
||||
settings = {
|
||||
General.AddressRandomization = "network";
|
||||
Settings.AlwaysRandomizeAddress = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user