Compare commits

...

3 Commits

Author SHA1 Message Date
chn
7d01d1688c modules.system.networking: fix dns 2024-09-19 23:41:44 +08:00
chn
141e5e99f9 devices.xmupc1: change gpu 2024-09-19 23:05:33 +08:00
chn
f4344b8b31 Reapply "devices.srv1.node1: enable vasp"
This reverts commit e9639a44c8.
2024-09-19 22:25:09 +08:00
4 changed files with 9 additions and 12 deletions

View File

@ -17,16 +17,12 @@ inputs:
nix.remote.slave.enable = true;
};
services.beesd.instances.root = { device = "/"; hashTableSizeMB = 256; threads = 4; };
packages =
{
vasp = null;
packages._packages = [(inputs.pkgs.runCommand "master-system" {}
''
mkdir -p $out/share
ln -s ${inputs.topInputs.self.nixosConfigurations.srv1-node0.config.system.build.toplevel} \
$out/share/master-system
'')];
};
packages.packages._packages = [(inputs.pkgs.runCommand "master-system" {}
''
mkdir -p $out/share
ln -s ${inputs.topInputs.self.nixosConfigurations.srv1-node0.config.system.build.toplevel} \
$out/share/master-system
'')];
};
specialisation =
{

View File

@ -5,7 +5,7 @@
* 显卡:
* 409024 G 显存。
* 309024 G 显存。
* 2080Ti: 12 G 显存。
* P5000: 16 G 显存。
* 硬盘2 T。
# 队列系统SLURM

View File

@ -80,7 +80,7 @@ inputs:
name = "xmupc1"; address = "127.0.0.1";
cpu = { cores = 16; threads = 2; };
memoryMB = 94208;
gpus = { "2080_ti" = 1; "3090" = 1; "4090" = 1; };
gpus = { "p5000" = 1; "3090" = 1; "4090" = 1; };
};
partitions.default = [ "xmupc1" ];
};

View File

@ -95,6 +95,7 @@ inputs:
routes = inputs.lib.mkIf (network.value.gateway != null)
[{ Gateway = network.value.gateway; Destination = "0.0.0.0/0"; }];
linkConfig.RequiredForOnline = "routable";
dns = inputs.lib.mkIf (network.value.dns != null) [ network.value.dns ];
};
})
(inputs.localLib.attrsToList networking.networkd.static))