1
0
forked from clan/clan-core

drop duplicate empty template

This commit is contained in:
Jörg Thalheim 2024-07-02 10:36:05 +02:00
parent 1172acdc04
commit d27e474b66
5 changed files with 1 additions and 29 deletions

View File

@ -60,9 +60,8 @@ def test_ui_template(
clan_core: Path,
) -> None:
flake_dir = temporary_home / "test-flake"
url = f"{clan_core}#empty"
url = f"{clan_core}#minimal"
cli.run(["flakes", "create", str(flake_dir), f"--url={url}"])
assert (flake_dir / ".clan-flake").exists()
monkeypatch.chdir(flake_dir)
cli.run(["machines", "create", "machine1"])
capsys.readouterr() # flush cache

View File

@ -1,2 +0,0 @@
# DO NOT DELETE
# This file is used by the clan cli to discover a clan flake

View File

@ -1,5 +0,0 @@
{
"name": "My Empty Clan",
"description": "some nice description",
"icon": "A path to the png"
}

View File

@ -1,16 +0,0 @@
# Clan configuration file
# TODO: This file is used as a template for the simple GUI workflow
{
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core";
outputs =
{ self, clan-core, ... }:
let
clan = clan-core.lib.buildClan {
# This clan builds all its configuration out of the current directory
directory = self;
};
in
{
inherit (clan) nixosConfigurations clanInternals;
};
}

View File

@ -5,10 +5,6 @@
description = "Initialize a new clan flake";
path = ./new-clan;
};
empty = {
description = "A empty clan template. Primarily for usage with the clan ui";
path = ./empty;
};
default = self.templates.new-clan;
minimal = {
description = "for clans managed via (G)UI";