Sigh. Still trying.

This commit is contained in:
2021-11-19 22:30:51 -08:00
parent 8889d7919c
commit 88f25b5f47
5 changed files with 82 additions and 51 deletions
+21 -11
View File
@@ -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;
};
}