commit 8269a29818e3871392d09c0a32bbc52d3fec1c4b
parent 80557075955ce98958c29a1b2c0110ae4e93b322
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 1 Sep 2021 17:58:12 +0200
ops: initiate a network.nix for home 🕳️
This will be used in conjunction with `morph` to deploy / update those
nodes and the network in general.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 46 insertions(+), 0 deletions(-)
diff --git a/ops/home/network.nix b/ops/home/network.nix
@@ -0,0 +1,46 @@
+let
+ sources = import ../../nix;
+ pkgs = sources.pkgs { };
+in
+{
+ network = {
+ inherit pkgs;
+ description = "Home network";
+ };
+
+ "k8sn1" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "k8sn1.home";
+ imports = [ ../../systems/hosts/k8sn1.nix ];
+ };
+ "k8sn2" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "k8sn2.home";
+ imports = [ ../../systems/hosts/k8sn2.nix ];
+ };
+ "k8sn3" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "k8sn3.home";
+ imports = [ ../../systems/hosts/k8sn3.nix ];
+ };
+ "wakasu" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "wakasu.home";
+ imports = [ ../../systems/hosts/wakasu.nix ];
+ };
+ "sakhalin" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "sakhalin.home";
+ imports = [ ../../systems/hosts/sakhalin.nix ];
+ };
+ "okinawa" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "okinawa.home";
+ imports = [ ../../systems/hosts/okinawa.nix ];
+ };
+ "hokkaido" = { config, pkgs, lib, ... }: {
+ deployment.targetUser = "root";
+ deployment.targetHost = "hokkaido.home";
+ imports = [ ../../systems/hosts/hokkaido.nix ];
+ };
+}