Add deets to hosts

This commit is contained in:
Niten 2021-04-10 21:45:38 -07:00
parent bb1adafd1d
commit 5f75be732c
4 changed files with 18 additions and 5 deletions

View File

@ -11,4 +11,7 @@
enable-gui = true;
ssh-pubkey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO67/CNhiG9UynaflmZUUK7f3O/GwFpnXri/PxpgHcPa";
profile = "desktop";
domain = "sea.fudo.org";
site = "seattle";
}

View File

@ -11,4 +11,7 @@
enable-gui = true;
ssh-pubkey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKVhHfRf2086SAqOmu2dNbsJI9UUAQWop+1lrcJlNgl8";
profile = "desktop";
domain = "sea.fudo.org";
site = "seattle";
}

View File

@ -14,7 +14,7 @@ let
initialize = import ../../initialize.nix;
# This is a problem...it creates a second source of truth.
host-config = ip: config:
host-config = ip: port: config:
{ ... }: {
imports = [
(initialize {

View File

@ -1,18 +1,25 @@
let
deploy-port = 2112;
nixos-version = "20.09";
hosts = import ./lib/hosts.nix { inherit nix-version; };
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 { inherit hostname profile domain site; };
in hosts.host-config ip deploy-port {
inherit hostname profile domain site;
};
in {
network.description = "Seattle home network.";
nostromo = seattle-host "10.0.0.1" "nostromo" "server";
lambda = seattle-host "10.0.0.3" "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";
}