feat: init
This commit is contained in:
commit
22d66fe293
3 changed files with 102 additions and 0 deletions
15
colmena-anywhere.nix
Normal file
15
colmena-anywhere.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, nodes, node, host, extraArgs, ... }:
|
||||
let
|
||||
inherit (nodes.${node}.config.system.build) diskoScript toplevel;
|
||||
colmenaAnywhere = pkgs.writeShellApplication {
|
||||
name = "colmena-anywhere-${node}";
|
||||
runtimeInputs = [ pkgs.nixos-anywhere ];
|
||||
text = ''
|
||||
nixos-anywhere -s ${diskoScript} ${toplevel} ${host} ${extraArgs}
|
||||
'';
|
||||
};
|
||||
in {
|
||||
out = colmenaAnywhere;
|
||||
drvPath = colmenaAnywhere.drvPath;
|
||||
runPath = "${colmenaAnywhere}/bin/${colmenaAnywhere.name}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue