new `nix run '.#sync-moby'` command to synchronize music onto my mobile phone

This commit is contained in:
Colin 2023-08-14 08:20:06 +00:00
parent e3ba156fe1
commit 7857f123a4
1 changed files with 10 additions and 0 deletions

View File

@ -298,6 +298,16 @@
program = ''${deployScript "servo" "servo" "switch"}'';
};
sync-moby = {
# copy music from the current device to moby
# TODO: should i actually sync from /mnt/servo-media/Music instead of the local drive?
type = "app";
program = builtins.toString (pkgs.writeShellScript "sync-to-moby" ''
sudo mount /mnt/moby-home
${pkgs.sane-scripts.sync-music}/bin/sane-sync-music ~/Music /mnt/moby-home/Music
'');
};
check-nur = {
# `nix run '.#check-nur'`
# validates that my repo can be included in the Nix User Repository