Compare commits

...

2 Commits

Author SHA1 Message Date
23747b5e40 Update for new version. 2024-03-30 17:29:21 +01:00
c2a8221c7f Add new script and it's dependencies. 2024-03-30 17:29:13 +01:00
3 changed files with 18 additions and 1 deletions

View File

@ -21,7 +21,7 @@
} }
]; ];
options = { opts = {
hlsearch = false; hlsearch = false;
incsearch = true; incsearch = true;
number = true; number = true;

View File

@ -26,5 +26,9 @@ stdenv.mkDerivation {
# Add dependencies to the runtime for my iso2chd script # Add dependencies to the runtime for my iso2chd script
wrapProgram $out/bin/iso2chd \ wrapProgram $out/bin/iso2chd \
--prefix PATH : ${lib.makeBinPath [ mame-tools ]} --prefix PATH : ${lib.makeBinPath [ mame-tools ]}
# Add dependencies to the runtime for my sync-backup script
wrapProgram $out/bin/sync-backup \
--prefix PATH : ${lib.makeBinPath [ rsync cryptsetup ]}
''; '';
} }

View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
disk="$1"
sudo cryptsetup luksOpen "$disk" crypt
sudo mount /dev/mapper/crypt "$HOME/Documents/drive"
rsync -ahAXv --delete /home/crony/.local/backup/ /home/crony/Documents/drive/backup
sudo umount "$HOME/Documents/drive"
sudo cryptsetup luksClose /dev/mapper/crypt