Add upload-to-files script
This commit is contained in:
parent
0a535c1c4e
commit
922012c215
|
@ -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;
|
||||
}
|
||||
|
|
9
nix/pkgs/upload-to-files.nix
Normal file
9
nix/pkgs/upload-to-files.nix
Normal 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
|
||||
'';
|
||||
}
|
|
@ -23,7 +23,9 @@
|
|||
|
||||
packages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
[
|
||||
upload-to-files
|
||||
]
|
||||
++ pkgs.lib.optionals (!headless) [
|
||||
brave
|
||||
firefox
|
||||
|
|
Loading…
Reference in a new issue