build: nixos 25.05
This commit is contained in:
@@ -166,10 +166,9 @@ in
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
hardware.opengl = {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
hardware.nvidia-container-toolkit.enable = true;
|
||||
systemd.services.nvidia-container-toolkit-cdi-generator = {
|
||||
@@ -352,36 +351,36 @@ in
|
||||
(lib.mkIf (gCfg.enable) {
|
||||
## network
|
||||
networking.hostName = assert (gCfg.serial > 0); "g" + (builtins.toString gCfg.serial);
|
||||
networking.search = [ "nasp" ];
|
||||
networking.nameservers = [ "192.168.16.118" ];
|
||||
networking.search = [ "" ];
|
||||
networking.nameservers = [ "192.168.16.1" ];
|
||||
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
|
||||
192.168.16.1 nasp.fit git.nasp.fit
|
||||
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
|
||||
192.168.16.119 g19.nasp g19
|
||||
'';
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -A INPUT -s 192.168.16.0/24 -j ACCEPT
|
||||
iptables -A INPUT -s 12.12.12.0/24 -j ACCEPT
|
||||
'';
|
||||
fileSystems."/gshare" = {
|
||||
device = "192.168.16.118:/data1/share";
|
||||
device = "192.168.16.1:/data1/share";
|
||||
fsType = "nfs";
|
||||
};
|
||||
## packages and services
|
||||
@@ -397,7 +396,7 @@ in
|
||||
};
|
||||
services.ntp = {
|
||||
enable = true;
|
||||
servers = [ "192.168.16.118" ];
|
||||
servers = [ "192.168.16.1" ];
|
||||
};
|
||||
})
|
||||
(lib.mkIf (gCfg.enable && gCfg.eth0Name != "") {
|
||||
@@ -410,18 +409,14 @@ in
|
||||
address = [ "192.168.16.${builtins.toString (gCfg.serial + 100)}/24" ];
|
||||
routes = [
|
||||
{
|
||||
routeConfig = {
|
||||
Gateway = "192.168.16.118";
|
||||
GatewayOnLink = true;
|
||||
Metric = 90;
|
||||
};
|
||||
Gateway = "192.168.16.1";
|
||||
GatewayOnLink = true;
|
||||
Metric = 90;
|
||||
}
|
||||
{
|
||||
routeConfig = {
|
||||
Gateway = "fd01:da8:bf:300::1";
|
||||
GatewayOnLink = true;
|
||||
Metric = 90;
|
||||
};
|
||||
Gateway = "fd01:da8:bf:300::1";
|
||||
GatewayOnLink = true;
|
||||
Metric = 90;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user