Commit f5789df25c41
Changed files (2)
ops
cloud
home
ops/cloud/network.nix
@@ -1,16 +0,0 @@
-let
- sources = import ../../nix;
- pkgs = sources.pkgs { };
-in
-{
- network = {
- inherit pkgs;
- description = "Cloud network";
- };
-
- "kerkouane" = { config, pkgs, lib, ... }: {
- deployment.targetUser = "root";
- deployment.targetHost = "kerkouane.vpn";
- imports = [ ../../systems/hosts/kerkouane.nix ];
- };
-}
ops/home/network.nix
@@ -1,48 +0,0 @@
-let
- sources = import ../../nix;
- pkgs = sources.pkgs { };
- metadata = pkgs.lib.importTOML ../hosts.toml;
-in
-{
- network = {
- inherit pkgs;
- description = "Home network";
- };
-
- # "k8sn1" = { config, pkgs, lib, ... }: {
- # deployment.targetUser = "root";
- # deployment.targetHost = "${metadata.hosts.k8sn1.addrs.v4}";
- # deployment.tags = [ "kubernetes" "master" ];
- # deployment.healthChecks = {
- # cmd = [{
- # cmd = [ "kubectl" "--kubeconfig=/etc/kubernetes/cluster-admin.kubeconfig" "version" ];
- # description = "Validating that kubectl is available and a cluster is running";
- # }];
- # };
- # imports = [ ../../systems/hosts/k8sn1.nix ];
- # };
- # "k8sn2" = { config, pkgs, lib, ... }: {
- # deployment.targetUser = "root";
- # deployment.targetHost = "${metadata.hosts.k8sn2.addrs.v4}";
- # deployment.tags = [ "kubernetes" "worker" ];
- # imports = [ ../../systems/hosts/k8sn2.nix ];
- # };
- # "k8sn3" = { config, pkgs, lib, ... }: {
- # deployment.targetUser = "root";
- # deployment.targetHost = "${metadata.hosts.k8sn3.addrs.v4}";
- # deployment.tags = [ "kubernetes" "worker" ];
- # imports = [ ../../systems/hosts/k8sn3.nix ];
- # };
- "wakasu" = { config, pkgs, lib, ... }: {
- deployment.targetUser = "root";
- deployment.targetHost = "wakasu.home";
- deployment.tags = [ "baremetal" "wakasu" ];
- imports = [ ../../systems/hosts/wakasu.nix ];
- };
- "sakhalin" = { config, pkgs, lib, ... }: {
- deployment.targetUser = "root";
- deployment.targetHost = "sakhalin.home";
- deployment.tags = [ "baremetal" "sakhalin" ];
- imports = [ ../../systems/hosts/sakhalin.nix ];
- };
-}