cleanup networking of blarm
This commit is contained in:
parent
0b828b6e65
commit
4d00941cb1
1 changed files with 29 additions and 23 deletions
|
@ -17,20 +17,25 @@ with lib.${namespace};
|
||||||
# Enables the generation of /boot/extlinux/extlinux.conf
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
networking.hostName = "blarm"; # Define your hostname.
|
networking = {
|
||||||
networking.networkmanager.enable = true;
|
hostName = "blarm";
|
||||||
networking.defaultGateway.address = "192.168.1.1";
|
firewall.enable = false;
|
||||||
networking.defaultGateway.interface = "end0";
|
networkmanager.enable = false;
|
||||||
networking.interfaces.end0 = {
|
dhcpcd.enable = true;
|
||||||
|
defaultGateway.address = "192.168.1.1";
|
||||||
|
interfaces.end0 = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "192.168.1.251";
|
||||||
|
prefixLength = 32;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
address = "192.168.1.202";
|
address = "192.168.1.202";
|
||||||
prefixLength = 32;
|
prefixLength = 32;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
ipv6.addresses = [
|
||||||
networking.interfaces.end0.ipv6.addresses = [
|
|
||||||
{
|
{
|
||||||
address = "fd00:192:168:1::202";
|
address = "fd00:192:168:1::202";
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
|
@ -40,7 +45,8 @@ with lib.${namespace};
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
networking.firewall.enable = false;
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue