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
|
|
|
|
2024-07-27 19:12:24 +00:00
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://attic.kun.is/nixos-servers"
|
|
|
|
];
|
|
|
|
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nixos-servers:JThtPjQjDu3b3qXLgeXSJGgKL4OKQ4uLgTtoo1rg6Vw="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-11-05 17:43:32 +00:00
|
|
|
inputs = {
|
2024-06-05 19:44:44 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-06-07 19:41:03 +00:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
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";
|
2024-06-15 20:27:07 +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
|
|
|
|
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
|
|
|
|
2024-03-24 20:23:17 +00:00
|
|
|
nixhelm = {
|
|
|
|
url = "github:farcaller/nixhelm";
|
2024-03-19 21:56:52 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-30 21:22:01 +00:00
|
|
|
|
|
|
|
blog-pim = {
|
2024-07-14 13:31:58 +00:00
|
|
|
# HACK: pinning this to a specific revision, as my automation is broken.
|
|
|
|
url = "git+https://git.kun.is/home/blog-pim?rev=7296f7f5bf5f089a5137036dcbd8058cf3e4a9e5";
|
2024-04-30 21:22:01 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-06-07 19:41:03 +00:00
|
|
|
|
|
|
|
kubenix = {
|
|
|
|
url = "github:pizzapim/kubenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
2024-06-15 20:27:07 +00:00
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-06-24 21:31:06 +00:00
|
|
|
|
|
|
|
nix-snapshotter = {
|
|
|
|
url = "github:pdtpartners/nix-snapshotter";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
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-04-13 15:28:31 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
machines = (pkgs.lib.modules.evalModules { modules = [ (import ./machines) ]; }).config.machines;
|
|
|
|
myLib = import ./my-lib pkgs.lib;
|
2023-12-15 14:11:14 +00:00
|
|
|
in
|
2024-04-13 15:28:31 +00:00
|
|
|
flake-utils.lib.meld (inputs // { inherit pkgs machines myLib; }) [
|
2024-04-13 14:06:35 +00:00
|
|
|
./flake-parts/scripts
|
|
|
|
./flake-parts/checks.nix
|
|
|
|
./flake-parts/deploy.nix
|
|
|
|
./flake-parts/nixos.nix
|
2024-04-13 14:37:18 +00:00
|
|
|
./flake-parts/kubenix.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
|
|
|
}
|