Commit Graph

171 Commits

Author SHA1 Message Date
Johannes Kirschbauer
e39a83c849 Templates/default: move clan configuration into its own file
Doing this with the idea in mind, that flake-parts / default should define the same clan in clan.nix
We can add a CI check to ensure both are the same files
They got desynced in the past and describe completely different clans now
2025-07-08 10:04:17 +02:00
Johannes Kirschbauer
47016de802 templates: add .gitignore files to all templates 2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
91f7f21b0c Templates: remove 'minimal-flake-parts' 2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
5d6a0c9883 templates: rename 'new_clan' to default 2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
1c33f30135 api/clan: rename 'show_clan_meta' -> 'get_clan_details' 2025-07-07 10:41:00 +02:00
Johannes Kirschbauer
072654abd6 Templates: fix invalid mock flake 2025-07-06 16:43:38 +02:00
pinpox
9a293f790e Add state-version nixos option
This reverts commit 8f6f06bef3.
2025-07-04 11:54:12 +02:00
Johannes Kirschbauer
8f6f06bef3 Revert "Merge pull request 'Make state-version generation an clan option' (#4056) from state-version-option into main"
This reverts commit 8a7b6d13b5, reversing
changes made to 7a4eeb5b16.
2025-07-01 18:15:11 +02:00
Johannes Kirschbauer
667cee0f6e buildClan: replace all usages by lib.clan 2025-07-01 11:56:31 +02:00
pinpox
4709e8e2f6 Remove state-version module from tests 2025-06-30 12:58:05 +02:00
Qubasa
51f9c5724a Revert "add flakeparts to template test"
This reverts commit a263643cd7.
2025-06-28 22:43:34 +07:00
Qubasa
4143e03042 Revert "Update new-clan template"
This reverts commit 7ad7c3f859.
2025-06-28 22:42:46 +07:00
Qubasa
863aa9029c Revert "Cleanup templates"
This reverts commit 77d8f76eb8.
2025-06-28 22:42:39 +07:00
Qubasa
2b5f20c4f4 Revert "templates/minimal: consistent input names"
This reverts commit 8ab9556a12.
2025-06-28 22:42:20 +07:00
Qubasa
ed853e19f5 Revert "templates/minimal: reuse flake-parts from clan-core"
This reverts commit de7f2dc6cb.
2025-06-28 22:41:45 +07:00
Qubasa
9f1482e539 Revert "templates: fix tests"
This reverts commit df598275f9.
2025-06-28 22:41:31 +07:00
Qubasa
ab872711c8 Revert "templates: remove .clan-flake"
This reverts commit 14eb541256.
2025-06-28 22:40:55 +07:00
Johannes Kirschbauer
14eb541256 templates: remove .clan-flake 2025-06-27 19:14:21 +02:00
Johannes Kirschbauer
df598275f9 templates: fix tests 2025-06-27 19:14:21 +02:00
Johannes Kirschbauer
de7f2dc6cb templates/minimal: reuse flake-parts from clan-core 2025-06-27 16:11:37 +02:00
Johannes Kirschbauer
8ab9556a12 templates/minimal: consistent input names 2025-06-27 11:04:31 +02:00
pinpox
a263643cd7 add flakeparts to template test 2025-06-27 11:04:31 +02:00
pinpox
77d8f76eb8 Cleanup templates 2025-06-27 10:39:59 +02:00
pinpox
7ad7c3f859 Update new-clan template 2025-06-27 10:39:59 +02:00
DavHau
d37c7c4c05 buildClan function: export all machines via nixosModules/darwinModules
We want each machine not only to be exposed via nixosConfigurations but also as a module.
This allows re-importing the machine in tests and override the architecture for example.
2025-06-09 12:51:22 +00:00
Jörg Thalheim
00984ec581 add inputs to specialArgs and make templates use it. 2025-05-30 19:53:12 +02:00
Jörg Thalheim
8cb6424504 templates: unify specialArgs across examples 2025-05-30 19:22:45 +02:00
Michael Hoang
b6d20a63f5 docs: point users towards passing in self to buildClan 2025-05-27 13:49:14 +10:00
Johannes Kirschbauer
d3fc1725f0 docs: replace outdates reference links to 'guides' in the cli 2025-05-20 18:49:35 +02:00
Jörg Thalheim
7eb0c0ad3d installer: set requireExplicitUpdate
We usually don't want to update this system by default.
2025-05-13 15:02:05 +02:00
Michael Hoang
87e3e59ba0 cli: don't depend on the entire clan-core 2025-04-28 13:20:07 +10:00
Jörg Thalheim
cbde58e1d8 zerotier: migrate from facts to vars 2025-04-22 18:20:35 +02:00
Johannes Kirschbauer
e37f16f47a treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib' 2025-04-09 11:32:46 +02:00
Qubasa
63a0e5f35d clan-cli: Fix templates not downloading template, Make templates use Flake cache, Fix flake cache exception on conditional attribute, add more tests 2025-03-19 10:30:52 +00:00
a-kenji
5f97805a94 templates: Remove description attribute from templates
Remove the `description` flake attribute from templates.
It has limited usefulness, is unset, is another thing the user has to
set and is confronted with.

It seems better to omit this attribute to keep the focus here on what
really matters.
2025-03-02 13:45:59 +00:00
a-kenji
48c08a0f62 templates: Remove unneeded article 2025-02-27 11:28:48 +00:00
a-kenji
c952fa0f80 templates: Remove superfluous comment
Remove this seemingly superfluous comment.
It is unclear what it really refers to.
Let's just remove it for brevity sake.
2025-02-27 09:57:13 +00:00
a-kenji
e952bbbaf7 templates/flake-parts: Add .envrc
Since the other template also has an `.envrc` let's keep everything
consistent.
2025-02-25 18:43:53 +07:00
Qubasa
125c2df666 docs: Fix multiple issues with the clan installation guide 2025-02-18 17:40:27 +07:00
Michael Hoang
ab6a9b2d52 templates: move machine templates 2025-02-17 02:15:42 +00:00
Michael Hoang
742040cd03 templates: allow specifying from flake-parts module 2025-02-16 21:10:22 +07:00
Jörg Thalheim
e27605d3a0 fix system.stateVersion 2025-02-14 12:22:26 +07:00
Qubasa
8baff4637e clan-cli: Fix disko template to not fail because of missing bootloader. 2025-02-10 20:36:55 +07:00
Qubasa
caaafdf5f9 clan-cli: Add test_clan_nix_attrset.py and minor fixups 2025-01-31 16:36:20 +07:00
Qubasa
0db5abf56a clan-cli: Make clan flakes create discover templates from inputs. Add clan flakes list command 2025-01-30 16:24:50 +07:00
Qubasa
ed6aaf5f0c clan: Add autoloaded clanModules from flake inputs. Rename 'directory' to 'self' in buildClan 2025-01-24 12:32:04 +07:00
lassulus
96f69627d8 minimal-flake-parts template: fix clan inputs name 2024-12-29 16:45:23 +01:00
Jörg Thalheim
4d8ca2d635 machines no longer need to be specified in buildClan 2024-12-04 12:14:32 +01:00
Johannes Kirschbauer
d1f624ad1f api/disk-templates: adopt directory structure from clan modules 2024-12-03 12:01:35 +01:00
Johannes Kirschbauer
1d566a47f4 Clan-api: init set disk_schema from facter report 2024-11-29 21:30:46 +01:00