diff --git a/flake.nix b/flake.nix index 143ba4e..9fc8c89 100644 --- a/flake.nix +++ b/flake.nix @@ -13,21 +13,8 @@ }; }; - nixConfig = { - extra-substituters = [ - "https://nix-community.cachix.org" - "https://hsndev.cachix.org" - ]; - extra-trusted-public-keys = [ - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - "hsndev.cachix.org-1:vN1/XGBZtMLnTFYDmTLDrullgZHSUYY3Kqt+Yg/C+tE=" - ]; - trusted-users = ["root" "gitea-runner"]; - }; - outputs = { self, sops-nix, nixpkgs, srvos, disko, ... }@inputs: let - linuxMachineName = "linux"; lib = nixpkgs.lib; inherit (self) outputs; in { @@ -103,5 +90,14 @@ }]; }; }; + # Convenience output that aggregates the outputs for home, nixos. + # Also used in ci to build targets generally. + top = + let + nixtop = nixpkgs.lib.genAttrs + (builtins.attrNames inputs.self.nixosConfigurations) + (attr: inputs.self.nixosConfigurations.${attr}.config.system.build.toplevel); + in + nixtop; }; }