Add fudoHosts output to flake.nix

This commit is contained in:
niten 2021-11-18 12:00:49 -08:00
parent 4168027ac2
commit c2b16c0342
1 changed files with 9 additions and 6 deletions

View File

@ -11,12 +11,15 @@
fudo-secrets.url = "path:/state/secrets";
};
outputs = { self, nixpkgs, fudo-home, fudo-pkgs, fudo-secrets, ... }: {
nixosConfigurations = let
outputs = { self, nixpkgs, fudo-home, fudo-pkgs, fudo-secrets, ... }: let
hostlib = import ./lib/hosts.nix { lib = nixpkgs.lib; };
nixos-hosts = nixpkgs.lib.filterAttrs (hostname: hostOpts:
fudo-nix-hosts = nixpkgs.lib.filterAttrs (hostname: hostOpts:
hostOpts.nixos-system) (hostlib.base-host-config ./config/hosts);
in {
fudoHosts = fudo-nix-hosts;
nixosConfigurations = let
build-timestamp = self.sourceInfo.lastModified;
@ -66,6 +69,6 @@
};
})
];
}) nixos-hosts;
}) fudo-nix-hosts;
};
}