feat: init

This commit is contained in:
Maurice Debray 2025-01-04 16:59:15 +01:00
commit 22d66fe293
No known key found for this signature in database
3 changed files with 102 additions and 0 deletions

15
colmena-anywhere.nix Normal file
View 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}";
}