modules.services.slurm: fix default partitions

This commit is contained in:
陈浩南 2024-09-20 16:22:14 +08:00
parent 5df233c831
commit 198882ee87
5 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ inputs:
memoryMB = 90112;
gpus."4060" = 1;
};
partitions.default = [ "pc" ];
partitions.localhost = [ "pc" ];
};
ollama = {};
waydroid = {};

View File

@ -59,7 +59,7 @@ inputs:
};
partitions =
{
default = [ "srv1-node0" ];
localhost = [ "srv1-node0" ];
old = [ "srv1-node1" "srv1-node2" "srv1-node3" ];
};
};

View File

@ -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 =

View File

@ -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 = "/"; }; };

View File

@ -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
[