new nix run '.#sync-moby'
command to synchronize music onto my mobile phone
This commit is contained in:
parent
e3ba156fe1
commit
7857f123a4
10
flake.nix
10
flake.nix
|
@ -298,6 +298,16 @@
|
||||||
program = ''${deployScript "servo" "servo" "switch"}'';
|
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 = {
|
check-nur = {
|
||||||
# `nix run '.#check-nur'`
|
# `nix run '.#check-nur'`
|
||||||
# validates that my repo can be included in the Nix User Repository
|
# validates that my repo can be included in the Nix User Repository
|
||||||
|
|
Loading…
Reference in New Issue
Block a user