Defined informis deployment. Don't need so much info to deploy.

This commit is contained in:
2021-04-18 23:24:01 -07:00
parent 148c82bcfe
commit eb3127a99d
6 changed files with 98 additions and 28 deletions
+12
View File
@@ -0,0 +1,12 @@
let
nixos-version = "20.09";
hosts = import ./lib/hosts.nix { inherit nixos-version; };
define-host = hosts.host-config;
in {
network.description = "Informis network";
procul = define-host "172.86.179.18" "procul";
}
+2 -6
View File
@@ -13,15 +13,11 @@ let
initialize = import ../../initialize.nix;
# This is a problem...it creates a second source of truth.
host-config = ip: port: config:
host-config = ip: hostname:
{ ... }: {
imports = [
(initialize {
hostname = config.hostname;
profile = config.profile;
site = config.site;
domain = config.domain;
hostname = hostname;
home-manager-package = home-manager-package;
pkgs = pkgs;
})
+7 -17
View File
@@ -1,26 +1,16 @@
let
deploy-port = 2112;
nixos-version = "20.09";
hosts = import ./lib/hosts.nix { inherit nixos-version; };
seattle-host = ip: hostname: profile:
let
site = "seattle";
domain = "sea.fudo.org";
in hosts.host-config ip deploy-port {
inherit hostname profile domain site;
};
define-host = hosts.host-config;
in {
network.description = "Seattle home network.";
lambda = seattle-host "10.0.0.11" "lambda" "server";
liminia = seattle-host "10.0.0.1" "limina" "server";
plato = seattle-host "10.0.0.21" "plato" "server";
spark = seattle-host "10.0.0.108" "spark" "desktop";
zbox = seattle-host "10.0.0.110" "zbox" "desktop";
#nostromo = seattle-host "10.0.0.1" "nostromo" "server";
#lambda = seattle-host "10.0.0.3" "lambda" "server";
limina = define-host "10.0.0.1" "limina";
lambda = define-host "10.0.0.11" "lambda";
plato = define-host "10.0.0.21" "plato";
spark = define-host "10.0.0.108" "spark";
zbox = define-host "10.0.0.110" "zbox";
}