clan-core/templates/new-clan/flake.nix

25 lines
658 B
Nix
Raw Normal View History

{
description = "<Put your description here>";
2023-10-31 12:01:16 +00:00
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core";
2024-03-17 18:48:49 +00:00
outputs =
{ self, clan-core, ... }:
2023-09-02 14:12:37 +00:00
let
system = "x86_64-linux";
pkgs = clan-core.inputs.nixpkgs.legacyPackages.${system};
clan = clan-core.lib.buildClan {
directory = self;
clanName = "__CHANGE_ME__";
};
2023-09-02 14:12:37 +00:00
in
{
# all machines managed by cLAN
inherit (clan) nixosConfigurations clanInternals;
2023-09-02 14:12:37 +00:00
# add the cLAN cli tool to the dev shell
devShells.${system}.default = pkgs.mkShell {
2024-03-17 18:48:49 +00:00
packages = [ clan-core.packages.${system}.clan-cli ];
2023-09-02 14:12:37 +00:00
};
};
}