Commit 8269a29818e3

Vincent Demeester <vincent@sbr.pm>
2021-09-01 17:58:12
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>
1 parent 8055707
Changed files (1)
ops
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 ];
+  };
+}