diff options
Diffstat (limited to 'nix-conf/home/otm.nix')
-rw-r--r-- | nix-conf/home/otm.nix | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/nix-conf/home/otm.nix b/nix-conf/home/otm.nix index ea6bd21..2055780 100644 --- a/nix-conf/home/otm.nix +++ b/nix-conf/home/otm.nix @@ -115,32 +115,6 @@ let zscaler-lein = pkgs.leiningen.override { jdk = zscaler-jdk; }; zscaler-clojure = pkgs.clojure.override { jdk = zscaler-jdk; }; - m = pkgs.mosh.overrideAttrs(old: { - postInstall = - old.postInstall + '' - ln -s $out/bin/mosh $out/bin/m - ln -s $out/bin/mosh-client $out/bin/mc - ''; - }); - - p = pkgs.writeShellScriptBin "p" '' - m --client=${m}/bin/mc pi - ''; - - s1 = pkgs.writeShellScriptBin "sync1" '' - scp ~/.emacs.d/lisp/*.el djm:dotfiles/.emacs.d/lisp/ - ''; - s2 = pkgs.writeShellScriptBin "sync2" '' - scp ~/dotfiles/nix-conf/home/otm.nix djm:dotfiles/nix-conf/home/ - ''; - s3 = pkgs.writeShellScriptBin "sync3" '' - scp ~/dotfiles/nix-conf/home/includes/*.{nix,yaml} djm:dotfiles/nix-conf/home/includes/ - ''; - - toggle = pkgs.writeShellScriptBin "remote-toggle" '' - tmux send-keys -t 0:0 C-b p - ''; - in { imports = [ ./includes/darwin.nix ]; @@ -171,17 +145,12 @@ 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; [ - m - p - s1 - s2 - s3 - toggle zscaler-clojure zscaler-lein ]; @@ -193,8 +162,6 @@ in "certs/internal-ca.pem".text = internal-cert; "certs/staging-internal-ca.pem".text = internal-staging-cert; ".docker/certs.d/zcaler-cert.pem".source = zscaler-cert-file; - - ".skhdrc".text = "play : remote-toggle"; ".wgetrc".text = "ca_certificate=${full-cert-file}"; }; |