From c1216c606160b85ef937e6dd2cbc326c00838bc7 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 2 May 2022 21:24:49 -0400 Subject: [PATCH] Switch music to an nfs mount --- applications/media.nix | 14 -------------- hardware/levitation.nix | 5 +++++ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/applications/media.nix b/applications/media.nix index a882ee0..c731c47 100644 --- a/applications/media.nix +++ b/applications/media.nix @@ -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"; diff --git a/hardware/levitation.nix b/hardware/levitation.nix index a34b543..8e5ae05 100644 --- a/hardware/levitation.nix +++ b/hardware/levitation.nix @@ -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";