Add upload-to-files script
This commit is contained in:
parent
0a535c1c4e
commit
922012c215
|
@ -10,6 +10,7 @@ in
|
||||||
notes = callPackage ./notes.nix { };
|
notes = callPackage ./notes.nix { };
|
||||||
i3-battery-popup = callPackage ./i3-battery-popup.nix { };
|
i3-battery-popup = callPackage ./i3-battery-popup.nix { };
|
||||||
tmux-sessionizer = callPackage ./tmux-sessionizer.nix { };
|
tmux-sessionizer = callPackage ./tmux-sessionizer.nix { };
|
||||||
|
upload-to-files = callPackage ./upload-to-files.nix { };
|
||||||
|
|
||||||
vimPlugins = prev.vimPlugins // vimPlugins;
|
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 =
|
packages =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[ ]
|
[
|
||||||
|
upload-to-files
|
||||||
|
]
|
||||||
++ pkgs.lib.optionals (!headless) [
|
++ pkgs.lib.optionals (!headless) [
|
||||||
brave
|
brave
|
||||||
firefox
|
firefox
|
||||||
|
|
Loading…
Reference in a new issue