From 8acfba9da8732a7130ec6d74a3c75c27e33b6973 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 24 Feb 2025 23:47:28 +0300 Subject: [PATCH] obdisian commands --- home/ssh.nix | 5 +---- hosts/atreus/configuration.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/home/ssh.nix b/home/ssh.nix index d95d91b..c776863 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -16,10 +16,7 @@ let user = "osbm"; identityFile = "/home/osbm/.ssh/id_ed25519"; port = 8022; - extraOptions = { - "RemoteCommand" = "fish"; - "RequestTTY" = "force"; - }; + # fish not found error ??? }; in { diff --git a/hosts/atreus/configuration.nix b/hosts/atreus/configuration.nix index 91a4428..ed36039 100644 --- a/hosts/atreus/configuration.nix +++ b/hosts/atreus/configuration.nix @@ -43,6 +43,33 @@ echo waking up ymir ${pkgs.wakeonlan}/bin/wakeonlan 04:7c:16:e6:d9:13 '') + # obsidian tools + # i need a background process that can just keep pulling and pushing changes just like the obsidian git plugin + # (pkgs.writeShellScriptBin "rerouting-sync-start" '' + # cd /storage/emulated/0/Documents/rerouting + # git pull + # git add --all + # git commit -m "Android sync" + # git push + # '') + (pkgs.writeShellScriptBin "cd-rerouting" '' + cd /storage/emulated/0/Documents/rerouting + '') + (pkgs.writeShellScriptBin "rerouting-status" '' + cd /storage/emulated/0/Documents/rerouting + git fetch + git status + '') + (pkgs.writeShellScriptBin "rerouting-pull" '' + cd /storage/emulated/0/Documents/rerouting + git pull + '') + (pkgs.writeShellScriptBin "rerouting-push" '' + cd /storage/emulated/0/Documents/rerouting + git add --all + git commit -m "Android sync" + git push + '') ]; # Backup etc files instead of failing to activate generation if a file already exists in /etc