lib/default.nix: Refactor lib loading
This commit is contained in:
parent
9ca9ed3ef3
commit
671f5925c1
@ -26,7 +26,8 @@
|
||||
};
|
||||
};
|
||||
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 {
|
||||
clerie.hosts = {
|
||||
aluminium = {
|
||||
|
20
lib/default.nix
Normal file
20
lib/default.nix
Normal 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
|
Loading…
Reference in New Issue
Block a user