Sigh. Still trying.
This commit is contained in:
@@ -13,17 +13,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, fudo-nixos, ... } @ inputs: with nixpkgs.lib;
|
||||
let
|
||||
deployment = import ../../common/deployment.nix {
|
||||
description = "Seattle NixOps network";
|
||||
deployment-hosts = let
|
||||
domain = "sea.fudo.org";
|
||||
in filterAttrs
|
||||
(hostname: hostOpts: hostOpts.domain == domain)
|
||||
outputs = { self, nixpkgs, fudo-nixos, fudo-secrets, ... } @ inputs:
|
||||
with nixpkgs.lib; {
|
||||
nixopsConfigurations.default = let
|
||||
deployment-hosts = filterAttrs
|
||||
(hostname: hostOpts: hostOpts.domain == "sea.fudo.org")
|
||||
fudo-nixos.fudoHosts;
|
||||
};
|
||||
in {
|
||||
nixopsConfigurations.default = (deployment inputs);
|
||||
|
||||
build-timestamp = self.sourceInfo.lastModified;
|
||||
|
||||
host-gen-config = import ./host-config.nix {
|
||||
inherit inputs build-timestamp;
|
||||
};
|
||||
|
||||
host-configs = mapAttrs host-gen-config deployment-hosts;
|
||||
in {
|
||||
inherit nixpkgs;
|
||||
|
||||
network = {
|
||||
description = "Seattle NixOps network";
|
||||
enableRollback = true;
|
||||
};
|
||||
} // host-configs;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user