2023-11-05 17:43:32 +00:00
|
|
|
{
|
2024-03-02 13:46:10 +00:00
|
|
|
description = "NixOS definitions for our home servers";
|
2023-11-05 17:43:32 +00:00
|
|
|
|
|
|
|
inputs = {
|
2023-12-17 15:22:22 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
2024-03-05 19:56:00 +00:00
|
|
|
nixpkgs-unstable.url = "github:pizzapim/nixpkgs/gatus";
|
2023-11-11 23:04:37 +00:00
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
2024-02-27 19:14:53 +00:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-03-02 11:42:00 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-11-29 09:02:50 +00:00
|
|
|
|
2023-11-14 22:53:04 +00:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-11-29 09:02:50 +00:00
|
|
|
|
2023-11-14 22:53:04 +00:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-07 19:24:12 +00:00
|
|
|
|
|
|
|
dns = {
|
|
|
|
url = "github:kirelagin/dns.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-17 20:28:15 +00:00
|
|
|
|
|
|
|
microvm = {
|
|
|
|
url = "github:astro/microvm.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-03-19 21:56:52 +00:00
|
|
|
|
|
|
|
kubenix = {
|
|
|
|
url = "github:hall/kubenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-11-05 17:43:32 +00:00
|
|
|
};
|
|
|
|
|
2023-11-29 09:02:50 +00:00
|
|
|
outputs =
|
2024-03-05 19:56:00 +00:00
|
|
|
inputs@{ self, nixpkgs, flake-utils, ... }:
|
2023-11-15 10:41:45 +00:00
|
|
|
let
|
2024-03-02 12:58:17 +00:00
|
|
|
hostSystem = "x86_64-linux";
|
|
|
|
hostPkgs = import nixpkgs { system = hostSystem; };
|
2024-03-02 13:03:27 +00:00
|
|
|
machines = (hostPkgs.lib.modules.evalModules { modules = [ (import ./nix/machines) ]; }).config.machines;
|
2024-03-02 12:58:17 +00:00
|
|
|
physicalMachines = hostPkgs.lib.filterAttrs (n: v: v.isPhysical) machines;
|
2023-12-15 14:11:14 +00:00
|
|
|
in
|
2024-03-02 12:58:17 +00:00
|
|
|
flake-utils.lib.meld (inputs // { inherit hostPkgs machines physicalMachines; }) [
|
2024-03-02 13:03:27 +00:00
|
|
|
./nix/flake/bootstrap
|
|
|
|
./nix/flake/checks.nix
|
|
|
|
./nix/flake/deploy.nix
|
|
|
|
./nix/flake/nixos.nix
|
2024-03-02 12:58:17 +00:00
|
|
|
] // (flake-utils.lib.eachDefaultSystem (system: {
|
|
|
|
formatter = nixpkgs.legacyPackages.${system}.nixfmt;
|
|
|
|
}));
|
2023-11-05 17:43:32 +00:00
|
|
|
}
|