new-clan: update template and add test

This commit is contained in:
DavHau
2023-09-02 16:12:37 +02:00
parent 1eed74c94f
commit 414033392e
2 changed files with 32 additions and 5 deletions

View File

@@ -3,9 +3,21 @@
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core";
outputs = { clan-core, ... }: {
nixosConfigurations = clan-core.lib.buildClan {
directory = ./.;
outputs = { clan-core, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
# all machines managed by cLAN
nixosConfigurations = clan-core.lib.buildClan {
directory = ./.;
};
# add the cLAN cli tool to the dev shell
devShells.${system}.default = pkgs.mkShell {
packages = [
clan-core.packages.${system}.clan-cli
];
};
};
};
}