services/flake.nix
2025-09-17 19:36:12 +02:00

51 lines
1.3 KiB
Nix

{
description = "Clan services for use with Amarth Cloud";
inputs = {
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
nixpkgs.follows = "clan-core/nixpkgs";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = inputs@{ self, flake-parts, clan-core, nixpkgs, ... }:
let
# clan = clan-core.lib.clan {
# inherit self;
# imports = [];
# specialArgs = { inherit inputs; };
# };
in
{
# inherit (clan.config) nixosConfigurations nixosModules clanInternals;
# clan = clan.config;
imports = [
clan-core.flakeModules.default
# ./clanServices/flake-module.nix
];
clan.modules = {
"@amarth/zitadel" = flake-parts.lib.importApply ./modules/service/zitadel/default.nix {};
"@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
};
devShells =
nixpkgs.lib.genAttrs
[
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
]
(system: {
default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
packages = [ clan-core.packages.${system}.clan-cli ];
};
});
};
}