hosts/caramel, users/hana: init
This commit is contained in:
parent
41c4362136
commit
1f8b0bd54c
14 changed files with 246 additions and 46 deletions
28
hosts/caramel/networking.nix
Normal file
28
hosts/caramel/networking.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }: {
|
||||
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
|
||||
networking = {
|
||||
wireless = {
|
||||
enable = true;
|
||||
interfaces = [ "wlan0" ];
|
||||
};
|
||||
|
||||
useDHCP = false;
|
||||
interfaces.wlan0.useDHCP = false;
|
||||
|
||||
interfaces.wlan0.ipv4.addresses = [{
|
||||
address = "192.168.100.15";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
defaultGateway = "192.168.100.1";
|
||||
nameservers = [ "8.8.8.8" ];
|
||||
|
||||
extraHosts = ''
|
||||
192.168.100.10 strawberry
|
||||
192.168.100.11 peach
|
||||
192.168.100.12 butterfly
|
||||
192.168.100.13 winter
|
||||
192.168.100.13 blossom
|
||||
192.168.100.14 apricot
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue