Added deployment definitions.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "Definition of the Seattle NixOps network.";
|
||||
description = "Seattle Fudo NixOps network.";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-21.05";
|
||||
@@ -7,39 +7,32 @@
|
||||
fudo-secrets.url = "path:/state/secrets";
|
||||
|
||||
fudo-nixos = {
|
||||
url = "path:/state/nixops/fudo-nixos";
|
||||
# url = "git+ssh://fudo_git@git.fudo.org:2222/fudosys/NixOS.git?ref=nixops-flake";
|
||||
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/nixos-config.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
fudo-entities = {
|
||||
url = "path:/state/fudo-entities";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
fudo-lib = {
|
||||
url = "path:/state/fudo-lib";
|
||||
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, fudo-nixos, fudo-entities, fudo-secrets, ... } @ inputs:
|
||||
outputs = { self, nixpkgs, fudo-nixos, fudo-entities, fudo-secrets } @ inputs:
|
||||
with nixpkgs.lib; {
|
||||
nixopsConfigurations.default = let
|
||||
domain = "sea.fudo.org";
|
||||
description = "Seattle Fudo NixOps Network";
|
||||
|
||||
deployment-hosts = filterAttrs
|
||||
(hostname: hostOpts:
|
||||
hostOpts.domain == "sea.fudo.org" &&
|
||||
hostOpts.domain == domain &&
|
||||
hostOpts.nixos-system)
|
||||
fudo-entities.entities.hosts;
|
||||
in {
|
||||
inherit nixpkgs;
|
||||
|
||||
network = {
|
||||
description = "Seattle NixOps network";
|
||||
enableRollback = true;
|
||||
};
|
||||
} // (mapAttrs (hostname: hostOpts:
|
||||
fudo-nixos.nixopsHostConfigurations.${hostname})
|
||||
deployment-hosts);
|
||||
deployment-config-generator =
|
||||
import ../../common/deployment.nix;
|
||||
in deployment-config-generator {
|
||||
inherit inputs deployment-hosts description;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user