mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 21:18:44 +08:00
Compare commits
3 Commits
e9639a44c8
...
7d01d1688c
Author | SHA1 | Date | |
---|---|---|---|
7d01d1688c | |||
141e5e99f9 | |||
f4344b8b31 |
@ -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 =
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
* 显卡:
|
||||
* 4090:24 G 显存。
|
||||
* 3090:24 G 显存。
|
||||
* 2080Ti: 12 G 显存。
|
||||
* P5000: 16 G 显存。
|
||||
* 硬盘:2 T。
|
||||
|
||||
# 队列系统(SLURM)
|
||||
|
@ -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" ];
|
||||
};
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user