Skip to content

Commit

Permalink
refactor: Make a Nextflow module
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Dec 18, 2023
1 parent bbd75fc commit b5ba019
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion hosts/framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
};
dev = {
cc.enable = true;
java.enable = true;
julia.enable = true;
nextflow.enable = true;
nixlang.enable = true;
node.enable = true;
node.enableGlobally = true;
Expand Down
2 changes: 1 addition & 1 deletion hosts/meshify/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
};
dev = {
cc.enable = true;
java.enable = true;
julia.enable = true;
nextflow.enable = true;
nixlang.enable = true;
node.enable = true;
node.enableGlobally = true;
Expand Down
15 changes: 0 additions & 15 deletions modules/dev/java.nix

This file was deleted.

24 changes: 24 additions & 0 deletions modules/dev/nextflow.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
config,
options,
lib,
pkgs,
...
}:
with lib;
with lib.my; let
cfg = config.modules.dev.nextflow;
in {
options.modules.dev.nextflow = {enable = mkBoolOpt false;};

config = mkIf cfg.enable {
user.packages = with pkgs; [
jdk17
my.nf-core
];

environment.shellAliases = {
nf = "nextflow";
};
};
}

0 comments on commit b5ba019

Please sign in to comment.