Move to using flake nixos config

This commit is contained in:
2021-11-18 11:49:04 -08:00
parent 381d2710e3
commit d8322b2d10
13 changed files with 134 additions and 129 deletions
+18
View File
@@ -0,0 +1,18 @@
{
description = "Definition of the Seattle NixOps network.";
inputs = import ../../common/inputs.nix;
outputs = { self, nixpkgs, fudo-nixos, ... } @ inputs:
import ../../common/deployment.nix {
description = "Seattle NixOps network";
hostnames = with nixpkgs.lib; let
domain = "sea.fudo.org";
deployment-hosts = filterAttrs
(hostname: hostOpts: hostOpts.domain == domain)
fudo-nixos.fudoHosts;
in mapAttrsToList
(hostname: hostOpts: fudo-nixos.nixosConfigurations.${hostname})
deployment-hosts;
};
}