add colmena function
This commit is contained in:
parent
b5082195be
commit
0d5ac5b96b
1 changed files with 26 additions and 0 deletions
26
lib/colmena.nix
Normal file
26
lib/colmena.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ inputs, overlays }:
|
||||
let
|
||||
inherit (builtins) mapAttrs;
|
||||
in {
|
||||
# From https://github.com/otavio/nix-config/blob/master/lib/default.nix
|
||||
mkColmenaFromNixOSConfigurations = nixosConfigurations:
|
||||
{
|
||||
meta = {
|
||||
description = "Pyrox's Deployments";
|
||||
nixpkgs = import inputs.nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
inherit overlays;
|
||||
};
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
} // mapAttrs
|
||||
(name: value:
|
||||
{
|
||||
nixpkgs.system = value.config.nixpkgs.system;
|
||||
imports = value._module.args.modules;
|
||||
})
|
||||
nixosConfigurations;
|
||||
}
|
Loading…
Reference in a new issue