clan-cli: add a Flake class with caching

This commit is contained in:
lassulus
2025-01-28 10:15:10 +01:00
committed by clan-bot
parent 26143b4b5b
commit fe2cfd3b37
6 changed files with 401 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ in
clanModules = lib.mkOption { type = lib.types.raw; };
source = lib.mkOption { type = lib.types.raw; };
meta = lib.mkOption { type = lib.types.raw; };
lib = lib.mkOption { type = lib.types.raw; };
all-machines-json = lib.mkOption { type = lib.types.raw; };
machines = lib.mkOption { type = lib.types.raw; };
machinesFunc = lib.mkOption { type = lib.types.raw; };

View File

@@ -217,6 +217,10 @@ in
templates = config.templates;
inventory = config.inventory;
meta = config.inventory.meta;
lib = {
inherit (clan-core.lib) select;
};
source = "${clan-core}";
# machine specifics