Switch music to an nfs mount
This commit is contained in:
parent
2aa48f16a9
commit
c1216c6061
|
@ -124,20 +124,6 @@ in
|
|||
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
|
||||
systemd.user.services.mopidy = {
|
||||
description = "Mopidy music server";
|
||||
|
|
|
@ -57,6 +57,11 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/home/nathan/Music" = {
|
||||
device = "10.0.0.139:/mnt/tank/root/nathan/music";
|
||||
fsType = "nfs";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{
|
||||
device = "/dev/disk/by-partuuid/f9d26ecd-7df5-48ad-bc19-b9ac4e91b0ee";
|
||||
|
|
Loading…
Reference in New Issue