templates: allow specifying from flake-parts module

This commit is contained in:
Michael Hoang
2025-02-13 15:09:17 +07:00
parent 09f650dab0
commit 742040cd03
6 changed files with 111 additions and 44 deletions

View File

@@ -1,5 +1,45 @@
{ self, inputs, ... }:
{
clan.templates = {
disko = {
single-disk = {
description = "A simple ext4 disk with a single partition";
path = ./disk/single-disk;
};
};
machine = {
flash-installer = {
description = "Initialize a new flash-installer machine";
path = ./clan/machineTemplates/machines/flash-installer;
};
new-machine = {
description = "Initialize a new machine";
path = ./clan/machineTemplates/machines/new-machine;
};
};
clan = {
default = {
description = "Initialize a new clan flake";
path = ./clan/new-clan;
};
minimal = {
description = "for clans managed via (G)UI";
path = ./clan/minimal;
};
flake-parts = {
description = "Flake-parts";
path = ./clan/flake-parts;
};
minimal-flake-parts = {
description = "Minimal flake-parts clan template";
path = ./clan/minimal-flake-parts;
};
};
};
flake = {
checks.x86_64-linux.template-minimal =
let