Files
nextjs-python-web-template/templates/new-clan/flake.nix
Jörg Thalheim 40ce518b7e template/buildClan: use self as directory
paths somehow don't end up in the store for some reason, which breaks sops-nix
2023-09-03 15:35:14 +02:00

24 lines
584 B
Nix

{
description = "<Put your description here>";
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core";
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 = self;
};
# add the cLAN cli tool to the dev shell
devShells.${system}.default = pkgs.mkShell {
packages = [
clan-core.packages.${system}.clan-cli
];
};
};
}