2021-11-18 11:49:04 -08:00
|
|
|
{
|
2021-11-29 22:08:44 -08:00
|
|
|
description = "Seattle Fudo NixOps network.";
|
2021-11-18 11:49:04 -08:00
|
|
|
|
2021-11-18 11:57:38 -08:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-21.05";
|
|
|
|
|
|
|
|
fudo-secrets.url = "path:/state/secrets";
|
|
|
|
|
|
|
|
fudo-nixos = {
|
2021-11-29 22:08:44 -08:00
|
|
|
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/nixos-config.git";
|
2021-11-18 11:57:38 -08:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2021-11-28 10:11:39 -08:00
|
|
|
|
|
|
|
fudo-entities = {
|
2021-11-29 22:08:44 -08:00
|
|
|
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git";
|
2021-11-28 10:11:39 -08:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2021-11-18 11:52:14 -08:00
|
|
|
};
|
2021-11-18 11:49:04 -08:00
|
|
|
|
2021-11-29 22:08:44 -08:00
|
|
|
outputs = { self, nixpkgs, fudo-nixos, fudo-entities, fudo-secrets } @ inputs:
|
2021-11-19 22:30:51 -08:00
|
|
|
with nixpkgs.lib; {
|
|
|
|
nixopsConfigurations.default = let
|
2021-11-29 22:08:44 -08:00
|
|
|
domain = "sea.fudo.org";
|
|
|
|
description = "Seattle Fudo NixOps Network";
|
|
|
|
|
2021-11-19 22:30:51 -08:00
|
|
|
deployment-hosts = filterAttrs
|
2021-11-28 10:11:39 -08:00
|
|
|
(hostname: hostOpts:
|
2021-11-29 22:08:44 -08:00
|
|
|
hostOpts.domain == domain &&
|
2021-11-28 10:11:39 -08:00
|
|
|
hostOpts.nixos-system)
|
|
|
|
fudo-entities.entities.hosts;
|
2021-11-19 22:30:51 -08:00
|
|
|
|
2021-11-29 22:08:44 -08:00
|
|
|
deployment-config-generator =
|
|
|
|
import ../../common/deployment.nix;
|
|
|
|
in deployment-config-generator {
|
|
|
|
inherit inputs deployment-hosts description;
|
|
|
|
};
|
2021-11-18 11:57:38 -08:00
|
|
|
};
|
2021-11-18 11:49:04 -08:00
|
|
|
}
|