hosts/hyacinth: init
This commit is contained in:
parent
1d770f1678
commit
f8952fc47e
8 changed files with 130 additions and 6 deletions
21
hosts/hyacinth/networking.nix
Normal file
21
hosts/hyacinth/networking.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }: {
|
||||
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
interfaces.enp5s0.useDHCP = false;
|
||||
|
||||
interfaces.enp5s0.ipv4.addresses = [{
|
||||
address = "192.168.100.16";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
defaultGateway = "192.168.100.1";
|
||||
nameservers = [ "1.1.1.1" ];
|
||||
|
||||
extraHosts = ''
|
||||
192.168.100.12 strawberry
|
||||
192.168.100.15 caramel
|
||||
|
||||
10.100.0.1 sugarcane
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue