about summary refs log tree commit diff stats
path: root/nix-conf/home/otm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix-conf/home/otm.nix')
-rw-r--r--nix-conf/home/otm.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/nix-conf/home/otm.nix b/nix-conf/home/otm.nix
index d087f24..2055780 100644
--- a/nix-conf/home/otm.nix
+++ b/nix-conf/home/otm.nix
@@ -115,9 +115,6 @@ let
   zscaler-lein = pkgs.leiningen.override { jdk = zscaler-jdk; };
   zscaler-clojure = pkgs.clojure.override { jdk = zscaler-jdk; };
 
-  toggle = pkgs.writeShellScriptBin "remote-toggle" ''
-    ssh -nT pi "playerctl play-pause" 2>/dev/null
-  '';
 in
 {
   imports = [ ./includes/darwin.nix ];
@@ -148,14 +145,14 @@ in
     notify_success = ''( osascript -e 'display notification "The command finished" with title "Success"' && afplay /System/Library/Sounds/Ping.aiff && say done  )'';
     notify_failure = ''( osascript -e 'display notification "The command failed" with title "Failure"' && afplay /System/Library/Sounds/Sosumi.aiff && say failed  )'';
     notify = "notify_success || notify_failure";
+    ltn = "lein test && notify";
+    yb = "aws codeartifact login --tool npm --repository otm-js --domain otm --domain-owner 103567893073 --region eu-west-1 --profile aws_otm_dev_developers && yarn && yarn build && notify";
     auth = "auth2aws login -r aws_otm_dev_developers,aws_otm_prd_developers && osascript -e 'tell app \"iTerm\" to activate'";
-    yarn_build = "aws codeartifact login --tool npm --repository otm-js --domain otm --domain-owner 103567893073 --region eu-west-1 --profile aws_otm_dev_developers && yarn && yarn build && notify";
   };
 
   home.packages = with pkgs; [
     zscaler-clojure
     zscaler-lein
-    toggle
   ];
 
   home.file = {
@@ -164,9 +161,8 @@ in
     "certs/full-cert.pem".source = full-cert-file;
     "certs/internal-ca.pem".text = internal-cert;
     "certs/staging-internal-ca.pem".text = internal-staging-cert;
-
-    ".skhdrc".text = "play : remote-toggle";
-    ".wgetrc".text = "ca_certificate=${zscaler-cert-file}";
+    ".docker/certs.d/zcaler-cert.pem".source = zscaler-cert-file;
+    ".wgetrc".text = "ca_certificate=${full-cert-file}";
   };
 
   sops.secrets = {