feat(g2): swapfile and hosts
This commit is contained in:
parent
632c855f69
commit
533bf6fe02
|
@ -23,7 +23,11 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/.swapfile";
|
||||
}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
@ -62,6 +62,28 @@ in
|
|||
}
|
||||
];
|
||||
};
|
||||
networking.extraHosts = ''
|
||||
192.168.16.101 g1-nasp g1
|
||||
192.168.16.102 g2-nasp g2
|
||||
192.168.16.103 g3-nasp g3
|
||||
192.168.16.104 g4-nasp g4
|
||||
192.168.16.105 g5-nasp g5
|
||||
192.168.16.106 g6-nasp g6
|
||||
192.168.16.107 g7-nasp g7
|
||||
192.168.16.108 g8-nasp g8
|
||||
192.168.16.109 g9-nasp g9
|
||||
192.168.16.110 g10-nasp g10
|
||||
192.168.16.111 g11-nasp g11
|
||||
192.168.16.112 g12-nasp g12
|
||||
192.168.16.113 g13-nasp g13
|
||||
192.168.16.114 g14-nasp g14
|
||||
192.168.16.115 g15-nasp g15
|
||||
192.168.16.116 g16-nasp g16
|
||||
192.168.16.117 g17-nasp g17
|
||||
192.168.16.118 g18-nasp g18 nasp.fit git.nasp.fit
|
||||
192.168.16.119 g19-nasp g19
|
||||
192.168.16.120 g20-nasp g20
|
||||
'';
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 12022 ];
|
||||
extraCommands = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user