50 lines
No EOL
1.2 KiB
Nix
50 lines
No EOL
1.2 KiB
Nix
{
|
|
description = "Amarth Cloud's Clan services";
|
|
|
|
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/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 ];
|
|
};
|
|
});
|
|
};
|
|
} |