kaas
This commit is contained in:
parent
5c1e6807b6
commit
cf9dcf2568
12 changed files with 244 additions and 137 deletions
43
clan/flake-module.nix
Normal file
43
clan/flake-module.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./machines.nix
|
||||
./tags.nix
|
||||
./instances.nix
|
||||
];
|
||||
|
||||
clan = {
|
||||
meta = {
|
||||
name = "arda";
|
||||
domain = "arda";
|
||||
description = "My personal machines at home";
|
||||
};
|
||||
|
||||
directory = ../.;
|
||||
|
||||
specialArgs = {
|
||||
ardaLib = {
|
||||
types =
|
||||
./types
|
||||
|> (inputs.import-tree.withLib lib).leafs
|
||||
|> lib.map (mod: {
|
||||
name = mod |> lib.baseNameOf |> lib.splitString "." |> lib.head;
|
||||
value = lib.types.submoduleWith {modules = [mod];};
|
||||
})
|
||||
|> lib.listToAttrs;
|
||||
};
|
||||
};
|
||||
|
||||
exportInterfaces =
|
||||
./interfaces
|
||||
|> (inputs.import-tree.withLib lib).leafs
|
||||
|> lib.map (mod: {
|
||||
name = mod |> lib.baseNameOf |> lib.splitString "." |> lib.head;
|
||||
value = import mod;
|
||||
})
|
||||
|> lib.listToAttrs;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue