Cleanup templates

This commit is contained in:
pinpox
2025-06-26 11:41:08 +02:00
committed by Johannes Kirschbauer
parent 7ad7c3f859
commit 77d8f76eb8
22 changed files with 110 additions and 377 deletions

View File

@@ -1,15 +1,36 @@
{
inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
inputs.nixpkgs.follows = "clan-core/nixpkgs";
inputs = {
clan.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
nixpkgs.follows = "clan/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "clan/nixpkgs";
};
outputs =
{ self, clan-core, ... }:
let
# Usage see: https://docs.clan.lol
clan = clan-core.clanLib.buildClan { inherit self; };
in
{
# all machines managed by Clan
inherit (clan) nixosConfigurations nixosModules clanInternals;
};
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } (
{ self, lib, ... }:
{
imports = [
inputs.clan.flakeModules.default
];
clan = {
inherit self;
specialArgs = { inherit inputs; };
# Ensure this is unique among all clans you want to use.
meta.name = lib.mkDefault "__CHANGE_ME__";
};
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
}
);
}