Move networking stuff to separate file
This commit is contained in:
parent
4011299399
commit
a3123cfdec
2 changed files with 19 additions and 17 deletions
|
@ -3,27 +3,11 @@
|
|||
./modules/reverse-proxy.nix
|
||||
./modules/home-assistant.nix
|
||||
./modules/dyndns.nix
|
||||
./modules/network.nix
|
||||
];
|
||||
|
||||
services.logind.lidSwitch = "ignore";
|
||||
boot.kernelParams = ["consoleblank=60"]; # Blanks console (screen off) after 60s
|
||||
|
||||
networking = {
|
||||
interfaces = {
|
||||
enp1s0.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.1.30";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
address = "192.168.1.1";
|
||||
interface = "enp1s0";
|
||||
};
|
||||
nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
18
machines/aresix/modules/network.nix
Normal file
18
machines/aresix/modules/network.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
interfaces = {
|
||||
enp1s0.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.1.30";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
address = "192.168.1.1";
|
||||
interface = "enp1s0";
|
||||
};
|
||||
nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue