Added deployment definitions.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
description = "Russell 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 = "rus.selby.ca";
|
||||
description = "Russell NixOps Network";
|
||||
|
||||
deployment-hosts = 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user