machines-config/flake.nix
2024-12-29 10:34:03 +01:00

44 lines
956 B
Nix

{
description = "KropCloud system flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "";
darwin.follows = "";
};
};
};
outputs =
inputs@{ self, nixpkgs, ... }:
let
kclib = import ./lib.nix {
nixpkgs = inputs.nixpkgs;
inputs = inputs;
};
in
{
nixosConfigurations = {
tailscale-proxy = kclib.mkHost {
name = "tailscale-proxy";
};
entrypoint = kclib.mkHost {
name = "entrypoint";
};
hydra = kclib.mkHost {
name = "hydra";
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
};
}