Defined informis deployment. Don't need so much info to deploy.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
@@ -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
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user