mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 21:18:44 +08:00
modules.services.slurm: fix default partitions
This commit is contained in:
parent
5df233c831
commit
198882ee87
@ -136,7 +136,7 @@ inputs:
|
||||
memoryMB = 90112;
|
||||
gpus."4060" = 1;
|
||||
};
|
||||
partitions.default = [ "pc" ];
|
||||
partitions.localhost = [ "pc" ];
|
||||
};
|
||||
ollama = {};
|
||||
waydroid = {};
|
||||
|
@ -59,7 +59,7 @@ inputs:
|
||||
};
|
||||
partitions =
|
||||
{
|
||||
default = [ "srv1-node0" ];
|
||||
localhost = [ "srv1-node0" ];
|
||||
old = [ "srv1-node1" "srv1-node2" "srv1-node3" ];
|
||||
};
|
||||
};
|
||||
|
@ -81,7 +81,7 @@ inputs:
|
||||
memoryMB = 94208;
|
||||
gpus = { "p5000" = 1; "3090" = 1; "4090" = 1; };
|
||||
};
|
||||
partitions.default = [ "xmupc1" ];
|
||||
partitions.localhost = [ "xmupc1" ];
|
||||
};
|
||||
xrdp = { enable = true; hostname = [ "xmupc1.chn.moe" ]; };
|
||||
samba =
|
||||
|
@ -80,7 +80,7 @@ inputs:
|
||||
memoryMB = 253952;
|
||||
gpus."4090" = 1;
|
||||
};
|
||||
partitions.default = [ "xmupc2" ];
|
||||
partitions.localhost = [ "xmupc2" ];
|
||||
};
|
||||
xrdp = { enable = true; hostname = [ "xmupc2.chn.moe" ]; };
|
||||
samba = { enable = true; hostsAllowed = ""; shares = { home.path = "/home"; root.path = "/"; }; };
|
||||
|
@ -22,7 +22,7 @@ inputs:
|
||||
gpus = mkOption { type = types.nullOr (types.attrsOf types.ints.unsigned); default = null; };
|
||||
};}));};
|
||||
partitions = mkOption { type = types.attrsOf (types.listOf types.nonEmptyStr); default = {}; };
|
||||
defaultPartition = mkOption { type = types.nonEmptyStr; default = "default"; };
|
||||
defaultPartition = mkOption { type = types.nonEmptyStr; default = "localhost"; };
|
||||
};
|
||||
config = let inherit (inputs.config.nixos.services) slurm; in inputs.lib.mkIf slurm.enable (inputs.lib.mkMerge
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user