diff options
author | Ben Sima <ben@bsima.me> | 2020-04-03 16:43:51 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-03 16:43:51 -0700 |
commit | 0d37af4eba374c41a9ad3fa8d2f2251ddb6b58c5 (patch) | |
tree | 2fe862376d983f1b5470a2181defe0142c1b4560 | |
parent | c472472df38e0dcb4abe5745d8fdec48d7e4590b (diff) |
Rename Serval to Prod
-rw-r--r-- | Com/Simatime/Prod/configuration.nix (renamed from Com/Simatime/Serval/configuration.nix) | 0 | ||||
-rwxr-xr-x | Com/Simatime/Prod/hardware.nix (renamed from Com/Simatime/Serval/hardware.nix) | 0 | ||||
-rwxr-xr-x | Com/Simatime/Prod/networking.nix (renamed from Com/Simatime/Serval/networking.nix) | 0 | ||||
-rw-r--r-- | Com/Simatime/Serval/Test.scm | 11 | ||||
-rw-r--r-- | Com/Simatime/buildOS.nix | 6 | ||||
-rw-r--r-- | default.nix | 19 | ||||
-rwxr-xr-x | push-all | 18 |
7 files changed, 19 insertions, 35 deletions
diff --git a/Com/Simatime/Serval/configuration.nix b/Com/Simatime/Prod/configuration.nix index d5ad02f..d5ad02f 100644 --- a/Com/Simatime/Serval/configuration.nix +++ b/Com/Simatime/Prod/configuration.nix diff --git a/Com/Simatime/Serval/hardware.nix b/Com/Simatime/Prod/hardware.nix index 8c88cb7..8c88cb7 100755 --- a/Com/Simatime/Serval/hardware.nix +++ b/Com/Simatime/Prod/hardware.nix diff --git a/Com/Simatime/Serval/networking.nix b/Com/Simatime/Prod/networking.nix index 79fbe27..79fbe27 100755 --- a/Com/Simatime/Serval/networking.nix +++ b/Com/Simatime/Prod/networking.nix diff --git a/Com/Simatime/Serval/Test.scm b/Com/Simatime/Serval/Test.scm deleted file mode 100644 index 44e88c0..0000000 --- a/Com/Simatime/Serval/Test.scm +++ /dev/null @@ -1,11 +0,0 @@ -(define-module (Com Simatime Serval Test) - #:use-module (Com Simatime Serval) - #:use-module (Com Simatime core) - #:use-module (Com Simatime Test)) - -(comment - ;; TODO: make this a real test - (let ((kit (Kit "test-kit" "/nix/path" "/nix/config" - "123.456.0.0" 80 "127.0.0.1" #t))) - (testing "ser-deser are opposite functions" - (equal? kit (deserialize (serialize kit)))))) diff --git a/Com/Simatime/buildOS.nix b/Com/Simatime/buildOS.nix index b2fc928..eb20d88 100644 --- a/Com/Simatime/buildOS.nix +++ b/Com/Simatime/buildOS.nix @@ -7,9 +7,9 @@ nixos: , deps ? {} # added under pkgs.biz , configuration # see: configuration.nix(5) }: -assert enableVpn -> builtins.isString ipAddress; -assert enableVpn -> builtins.isString vpnRsaPrivateKeyFile; -assert enableVpn -> builtins.isString vpnEd25519PrivateKeyFile; +# assert enableVpn -> builtins.isString ipAddress; +# assert enableVpn -> builtins.isString vpnRsaPrivateKeyFile; +# assert enableVpn -> builtins.isString vpnEd25519PrivateKeyFile; let vpnExtraConfig = if enableVpn then '' ConnectTo = ${vpnConnectTo} diff --git a/default.nix b/default.nix index 753483d..60b67b3 100644 --- a/default.nix +++ b/default.nix @@ -17,8 +17,6 @@ in rec { Com.Simatime.Cloud = buildOS { enableVpn = true; ipAddress = "159.89.128.69"; - vpnRsaPrivateKeyFile = "/etc/tinc/rsa_key.priv"; - vpnEd25519PrivateKeyFile = "/etc/tinc/ed25519_key.priv"; configuration = { imports = [ ./Com/Simatime/packages.nix @@ -40,7 +38,7 @@ in rec { # Com.Simatime.Dev = buildOS { enableVpn = true; - ipAddress = "69.181.254.154"; + ipAddress = "73.222.221.63"; configuration = { imports = [ ./Com/Simatime/packages.nix @@ -52,20 +50,21 @@ in rec { networking.domain = "dev.simatime.com"; }; }; - # Serval is the production server for apps + # The production server for apps # - Com.Simatime.Serval = buildOS { + Com.Simatime.Prod = buildOS { deps = { que-server = Run.Que.Server; }; configuration = { imports = [ ./Com/Simatime/packages.nix - ./Com/Simatime/Serval/hardware.nix - ./Com/Simatime/Serval/networking.nix - ./Com/Simatime/Serval/configuration.nix + ./Com/Simatime/users.nix + ./Com/Simatime/Prod/hardware.nix + ./Com/Simatime/Prod/networking.nix + ./Com/Simatime/Prod/configuration.nix ./Run/Que/service.nix ]; - networking.hostName = "serval"; - networking.domain = "serval.simatime.com"; + networking.hostName = "prod"; + networking.domain = "prod.simatime.com"; boot.enableContainers = true; }; }; @@ -1,15 +1,11 @@ #!/usr/bin/env bash +set -ex -./bild Com.Simatime.Cloud -./push Com.Simatime.Cloud simatime.com +bild Com.Simatime.Cloud +push Com.Simatime.Cloud simatime.com -./bild Com.Simatime.Dev -./push Com.Simatime.Dev dev.simatime.com +bild Com.Simatime.Dev +push Com.Simatime.Dev dev.simatime.com -# these are todos: - -#bild Com.InfluencedByBooks -#push Com.InfluencedByBooks influencedbybooks.com - -#bild Com.MusicMeetsComics -#push Com.MusicMeetsComics musicmeetscomics.com +bild Com.Simatime.Prod +push Com.Simatime.Prod prod.simatime.com |