Add fudoHosts output to flake.nix
This commit is contained in:
parent
4168027ac2
commit
c2b16c0342
15
flake.nix
15
flake.nix
|
@ -11,12 +11,15 @@
|
|||
fudo-secrets.url = "path:/state/secrets";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, fudo-home, fudo-pkgs, fudo-secrets, ... }: {
|
||||
nixosConfigurations = let
|
||||
hostlib = import ./lib/hosts.nix { lib = nixpkgs.lib; };
|
||||
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:
|
||||
hostOpts.nixos-system) (hostlib.base-host-config ./config/hosts);
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue