templates: rename 'new_clan' to default

This commit is contained in:
Johannes Kirschbauer
2025-07-07 16:23:05 +02:00
committed by Mic92
parent d4fba5d42d
commit 5d6a0c9883
12 changed files with 7 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ git+file:///home/lhebendanz/Projects/clan-core
│ ├───editor omitted (use '--all-systems' to show)
└───templates
├───default: template: Initialize a new clan flake
└───new-clan: template: Initialize a new clan flake
└───default: template: Initialize a new clan flake
```
You can execute every test separately by following the tree path `nix run .#checks.x86_64-linux.clan-pytest -L` for example.

View File

@@ -55,18 +55,18 @@ def test_clan_core_templates(
template_path = default_template.get("path", None)
assert template_path is not None
new_clan = temporary_home / "new_clan"
my_clan = temporary_home / "my_clan"
copy_from_nixstore(
Path(template_path),
new_clan,
my_clan,
)
flake_nix = new_clan / "flake.nix"
flake_nix = my_clan / "flake.nix"
assert (flake_nix).exists()
assert (flake_nix).is_file()
assert (new_clan / "machines").is_dir()
assert (my_clan / "machines").is_dir()
# Test if we can write to the flake.nix file
with flake_nix.open("r+") as f:

View File

@@ -131,7 +131,7 @@ def test_clan_create_api(
assert public_key.exists()
assert public_key.is_file()
dest_clan_dir = Path("~/new-clan").expanduser()
dest_clan_dir = Path("~/default").expanduser()
# ===== CREATE CLAN ======
# TODO: We need to generate a lock file for the templates

View File

@@ -25,7 +25,7 @@
clan = {
default = {
description = "Initialize a new clan flake";
path = ./clan/new-clan;
path = ./clan/default;
};
minimal = {
description = "for clans managed via (G)UI";