From b5f77f5ab1654f35d92e3ba7ab68ccd969c00f1f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 16:34:31 -0700 Subject: [PATCH] #16 Render newlines when echoing privkey to tmp --- .gitea/workflows/vyos-deploy.yaml | 2 +- nix/dungeon-master/home-manager/home.nix | 1 + nix/dungeon-master/home-manager/scripts.nix | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/vyos-deploy.yaml b/.gitea/workflows/vyos-deploy.yaml index 8386be8a..657bae59 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v4 - name: Configure SSH agent run: | - echo ${{ secrets.RUNNER_SSH_PRIVATEKEY }} >> /tmp/key + echo -e ${{ secrets.RUNNER_SSH_PRIVATEKEY }} > /tmp/key alias ssh='ssh -i /tmp/key' - name: Print running VyOS version run: | diff --git a/nix/dungeon-master/home-manager/home.nix b/nix/dungeon-master/home-manager/home.nix index 81088259..3084e049 100644 --- a/nix/dungeon-master/home-manager/home.nix +++ b/nix/dungeon-master/home-manager/home.nix @@ -194,6 +194,7 @@ neofetch = "fetch"; find = ''fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"''; hmu = "home-manager switch -b backup --flake ~/Git/Jafner.net/nix/dungeon-master/home-manager/ --impure"; + nixgc = "nix-env --delete-generations 7d && nix-store --gc --print-dead"; kitty = "nixGL kitty"; fzf-ssh = "ssh $(cat ~/.ssh/profiles | fzf --height 20%)"; fsh = "fzf-ssh"; diff --git a/nix/dungeon-master/home-manager/scripts.nix b/nix/dungeon-master/home-manager/scripts.nix index 38e0c600..a69ab307 100644 --- a/nix/dungeon-master/home-manager/scripts.nix +++ b/nix/dungeon-master/home-manager/scripts.nix @@ -5,6 +5,11 @@ name = "send-to-x264-mp4"; # { filePath }: { none } (side-effect: transcodes & remuxes file to x264/mp4) runtimeInputs = [ libnotify + ( writeShellApplication { name = "check-inputs"; } ) + ( writeShellApplication { name = "transcode-av1"; } ) # https://trac.ffmpeg.org/wiki/Encode/AV1 + ( writeShellApplication { name = "transcode-x264"; } ) # https://trac.ffmpeg.org/wiki/Encode/H.264 + ( writeShellApplication { name = "upload-zipline"; } ) + ( writeShellApplication { name = "slow-motion"; } ) # https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video ]; text = '' INPUT_FILE=$(realpath "$1")