39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{
|
|
description = "Informis NixOps network.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-21.05";
|
|
|
|
fudo-secrets.url = "path:/state/secrets";
|
|
|
|
fudo-nixos = {
|
|
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/nixos-config.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
fudo-entities = {
|
|
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:
|
|
with nixpkgs.lib; {
|
|
nixopsConfigurations.default = let
|
|
domain = "informis.land";
|
|
description = "Informis NixOps Network";
|
|
|
|
deployment-hosts = attrNames
|
|
(filterAttrs
|
|
(hostname: hostOpts:
|
|
hostOpts.domain == domain &&
|
|
hostOpts.nixos-system)
|
|
fudo-entities.entities.hosts);
|
|
|
|
deployment-config-generator = import ../common/deployment.nix;
|
|
in deployment-config-generator {
|
|
inherit inputs deployment-hosts description;
|
|
};
|
|
};
|
|
}
|