diff options
author | Justin Bedo <cu@cua0.org> | 2021-11-03 17:57:41 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-11-03 17:57:41 +1100 |
commit | 32c05eb5f9b3006e48cd533688cc1e7980e185e3 (patch) | |
tree | 4e9b837ad6e7e130de61dfa924a09df306c751bc /examples/ex-tnpair/cluster.nix | |
parent | bac9248a5e08e8afdf5485a6e27cfe72e1ca5090 (diff) |
update ex-tnpair cluster example
- fix bug with deprecated use of slurm tree
- remove torque support
Diffstat (limited to 'examples/ex-tnpair/cluster.nix')
-rw-r--r-- | examples/ex-tnpair/cluster.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/ex-tnpair/cluster.nix b/examples/ex-tnpair/cluster.nix index 5d4e1de..295d3eb 100644 --- a/examples/ex-tnpair/cluster.nix +++ b/examples/ex-tnpair/cluster.nix @@ -3,13 +3,14 @@ let bionix = import <bionix> { overlays = [ - (_: super: - super."${if tmpDir == null then "slurm" else "qsub"}" - { - ppn = 24; - mem = 7; - walltime = "3:00:00"; - } // super.lib.optionalAttrs (tmpDir != null) { inherit tmpDir; }) + (_: super: with super; + { + exec = f: def (slurm-exec f) { + ppn = 24; + mem = 7; + walltime = "3:00:00"; + }; + }) (self: super: with super; { |