Add deets to hosts
This commit is contained in:
parent
bb1adafd1d
commit
5f75be732c
@ -11,4 +11,7 @@
|
||||
enable-gui = true;
|
||||
ssh-pubkey =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO67/CNhiG9UynaflmZUUK7f3O/GwFpnXri/PxpgHcPa";
|
||||
profile = "desktop";
|
||||
domain = "sea.fudo.org";
|
||||
site = "seattle";
|
||||
}
|
||||
|
@ -11,4 +11,7 @@
|
||||
enable-gui = true;
|
||||
ssh-pubkey =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKVhHfRf2086SAqOmu2dNbsJI9UUAQWop+1lrcJlNgl8";
|
||||
profile = "desktop";
|
||||
domain = "sea.fudo.org";
|
||||
site = "seattle";
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user