feat: try rework
This commit is contained in:
parent
1ddbd3b8b6
commit
ecf10628c3
51 changed files with 1941 additions and 445 deletions
15
system/static-ip.nix
Normal file
15
system/static-ip.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
net = import ../config/network.nix;
|
||||
in
|
||||
{
|
||||
networking.interfaces.eth0.ipv4.addresses = [{
|
||||
address = net.devices.self.ip;
|
||||
prefixLength = net.network.cidr;
|
||||
}];
|
||||
|
||||
networking.defaultGateway = net.network.gateway;
|
||||
|
||||
networking.nameservers = net.fallback_dns_servers;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue