Switch music to an nfs mount

This commit is contained in:
Nathan McCarty 2022-05-02 21:24:49 -04:00
parent 2aa48f16a9
commit c1216c6061
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 5 additions and 14 deletions

View File

@ -124,20 +124,6 @@ in
unstable.picard unstable.picard
]; ];
# Mount music directory
systemd.user.services.rclone-music = {
description = "Rclone mount ~/Music";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
# So we can pick up the fusermount wrapper, this is a less than ideal way to do this
Environment = "PATH=/usr/bin:/run/wrappers/bin/";
Type = "notify";
ExecStart = "${pkgs.rclone}/bin/rclone mount music: /home/nathan/Music --config /home/nathan/.config/rclone/rclone.conf --cache-dir /home/nathan/.cache/rclone --no-checksum --no-modtime";
};
enable = true;
};
# Start mopidy as a user service, for sanity # Start mopidy as a user service, for sanity
systemd.user.services.mopidy = { systemd.user.services.mopidy = {
description = "Mopidy music server"; description = "Mopidy music server";

View File

@ -57,6 +57,11 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/home/nathan/Music" = {
device = "10.0.0.139:/mnt/tank/root/nathan/music";
fsType = "nfs";
};
swapDevices = swapDevices =
[{ [{
device = "/dev/disk/by-partuuid/f9d26ecd-7df5-48ad-bc19-b9ac4e91b0ee"; device = "/dev/disk/by-partuuid/f9d26ecd-7df5-48ad-bc19-b9ac4e91b0ee";