diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..80b72ed --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/sur/bin/bash + +nixops modify -d $1 $1.nix +nixops deploy -d $1 diff --git a/git.nix b/git.nix new file mode 100644 index 0000000..838b5d8 --- /dev/null +++ b/git.nix @@ -0,0 +1,7 @@ +{ + git01 = { config, lib, pkgs, ... }: + { + deployment.targetHost = "10.253.18.103"; + imports = [ ./git01/configuration.nix ]; + }; +} diff --git a/deployment.nix b/k8s.nix similarity index 55% rename from deployment.nix rename to k8s.nix index 95f6dca..318e070 100644 --- a/deployment.nix +++ b/k8s.nix @@ -1,25 +1,19 @@ { - kube01 = { config, lib, pkgs, ... }: - { - deployment.targetHost = "10.253.18.100"; - imports = [ ./k8s01/configuration.nix ]; - }; - - kube02 = { config, lib, pkgs, ... }: - { - deployment.targetHost = "10.253.18.102"; - imports = [ ./k8s02/configuration.nix ]; - }; - - kubemaster = { config, lib, pkgs, ... }: + k8s00 = { config, lib, pkgs, ... }: { deployment.targetHost = "10.253.18.101"; imports = [ ./k8s00/configuration.nix ]; }; - git01 = { config, lib, pkgs, ... }: + k8s01 = { config, lib, pkgs, ... }: { - deployment.targetHost = "10.253.18.103"; - imports = [ ./git01/configuration.nix ]; + deployment.targetHost = "10.253.18.100"; + imports = [ ./k8s01/configuration.nix ]; + }; + + k8s02 = { config, lib, pkgs, ... }: + { + deployment.targetHost = "10.253.18.102"; + imports = [ ./k8s02/configuration.nix ]; }; }