Add upload-to-files script

This commit is contained in:
Oliver Davies 2025-01-16 08:07:06 +00:00
parent 0a535c1c4e
commit 922012c215
3 changed files with 13 additions and 1 deletions

View file

@ -10,6 +10,7 @@ in
notes = callPackage ./notes.nix { };
i3-battery-popup = callPackage ./i3-battery-popup.nix { };
tmux-sessionizer = callPackage ./tmux-sessionizer.nix { };
upload-to-files = callPackage ./upload-to-files.nix { };
vimPlugins = prev.vimPlugins // vimPlugins;
}

View file

@ -0,0 +1,9 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "upload-to-files";
text = ''
${pkgs.rsync}/bin/rsync -avz --info=progress2 "$1" ssh.oliverdavies.uk:/var/www/vhosts/files.oliverdavies.uk
'';
}

View file

@ -23,7 +23,9 @@
packages =
with pkgs;
[ ]
[
upload-to-files
]
++ pkgs.lib.optionals (!headless) [
brave
firefox