# Pastebin kQth1DXz outputs = { self, nixpkgs, utils, ... }: let infra = ./nix; in (utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; overlays = [ (import (infra + "/overlay.nix") { inherit system self; }) ]; }; in { packages = { inherit (pkgs) bitte nixos-rebuild nixFlakes sops crystal deploy terraform-with-plugins terraform-config; }; })) // { nixosConfigurations = let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; overlays = [ (import (infra + "/overlay.nix") { inherit system self; }) ]; }; in pkgs.recImport { dir = infra + "/hosts"; _import = name: nixpkgs.lib.nixosSystem rec { inherit system pkgs; modules = [ (infra + "/modules") ]; specialArgs = { inherit self name; nodes = self.nixosConfigurations; }; }; }; }; }