clan-cli: Fix templates not downloading template, Make templates use Flake cache, Fix flake cache exception on conditional attribute, add more tests

This commit is contained in:
Qubasa
2025-03-17 14:31:53 +01:00
committed by Mic92
parent bc48a7a57c
commit 63a0e5f35d
13 changed files with 409 additions and 230 deletions

View File

@@ -13,13 +13,14 @@
clan-core = fake-clan-core;
};
lib = inputs.nixpkgs.lib;
in
{
clan =
clan_attrs_json =
if lib.pathExists ./clan_attrs.json then
builtins.fromJSON (builtins.readFile ./clan_attrs.json)
else
{ };
in
{
clan = clan_attrs_json;
nixosConfigurations.machine1 = inputs.nixpkgs.lib.nixosSystem {
modules = [