2021-11-18 11:49:04 -08:00
|
|
|
{
|
|
|
|
description = "Definition of the Seattle NixOps network.";
|
|
|
|
|
2021-11-18 11:57:38 -08:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-21.05";
|
|
|
|
|
|
|
|
fudo-home = {
|
|
|
|
url = "git+https://git.fudo.org/niten/nix-home.git?ref=flake";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fudo-secrets.url = "path:/state/secrets";
|
|
|
|
|
|
|
|
fudo-pkgs.url = "git+https://git.fudo.org/fudo-public/fudo-pkgs.git";
|
|
|
|
|
|
|
|
fudo-nixos = {
|
|
|
|
url = "git+ssh://fudo_git@git.fudo.org:2222/fudosys/NixOS.git?ref=nixops-flake";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2021-11-18 11:52:14 -08:00
|
|
|
};
|
2021-11-18 11:49:04 -08:00
|
|
|
|
2021-11-18 11:57:38 -08:00
|
|
|
outputs = { self, nixpkgs, fudo-nixos, ... } @ inputs: let
|
|
|
|
deployment = import ../../common/deployment.nix {
|
2021-11-18 11:49:04 -08:00
|
|
|
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;
|
2021-11-18 11:57:38 -08:00
|
|
|
};
|
|
|
|
in (deployment inputs);
|
2021-11-18 11:49:04 -08:00
|
|
|
}
|