hosts: move to new structure
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
9
hosts/sarien/networking/default.nix
Normal file
9
hosts/sarien/networking/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./network-manager.nix
|
||||
./host-name-id.nix
|
||||
];
|
||||
networking = {
|
||||
hosts = import ./hosts.nix;
|
||||
};
|
||||
}
|
6
hosts/sarien/networking/host-name-id.nix
Normal file
6
hosts/sarien/networking/host-name-id.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
networking = {
|
||||
hostId = "31150fae";
|
||||
hostName = "sarien";
|
||||
};
|
||||
}
|
3
hosts/sarien/networking/hosts.nix
Normal file
3
hosts/sarien/networking/hosts.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"192.168.1.42" = ["dunamis"];
|
||||
}
|
20
hosts/sarien/networking/network-manager.nix
Normal file
20
hosts/sarien/networking/network-manager.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
ethernet.macAddress = "stable";
|
||||
networkmanager.wifi = {
|
||||
backend = "iwd";
|
||||
macAddress = "random";
|
||||
scanRandMacAddress = true;
|
||||
};
|
||||
};
|
||||
wireless.iwd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General.AddressRandomization = "network";
|
||||
Settings.AlwaysRandomizeAddress = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user