1
0

lib/default.nix: Refactor lib loading

This commit is contained in:
clerie 2023-12-10 18:27:55 +01:00
parent 9ca9ed3ef3
commit 671f5925c1
2 changed files with 22 additions and 1 deletions

View File

@ -26,7 +26,8 @@
}; };
}; };
outputs = { self, agenix, nixpkgs, nixos-hardware, chaosevents, fernglas, nixos-exporter, solid-xmpp-alarm, ... }@inputs: let outputs = { self, agenix, nixpkgs, nixos-hardware, chaosevents, fernglas, nixos-exporter, solid-xmpp-alarm, ... }@inputs: let
helper = (import ./lib/flake-helper.nix) inputs; lib = import ./lib inputs;
helper = lib.flake-helper;
in { in {
clerie.hosts = { clerie.hosts = {
aluminium = { aluminium = {

20
lib/default.nix Normal file
View File

@ -0,0 +1,20 @@
inputs:
let
callLibs = file: import file ({
inherit lib inputs;
} // inputs);
lib = {
flake-helper = callLibs ./flake-helper.nix;
inherit ("flake-helper")
generateNixosSystem
mapToNixosConfigurations
generateColmenaHost
mapToColmenaHosts
buildHosts;
};
in
lib