From 1eb75018d37643b5ba5764b4890948201592f208 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 2 Dec 2024 20:52:44 -0500 Subject: [PATCH] Change Audiobookshelf mountpoint to service's default This is being done as a step before moving to the nix version of ABS. That change would be included here too, but I ran into a bug: ``` [2024-12-02 19:53:46.433] FATAL: [Server] Unhandled rejection: [Error: EACCES: permission denied, mkdir '/metadata'] { errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/metadata' } promise: Promise { [Error: EACCES: permission denied, mkdir '/metadata'] { errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/metadata' } } ``` No idea why yet so the container lives on. To setup the mountpoint, I ran `zfs set mountpoint=legacy orico/audiobookshelf` and created the directory used as the mount in the `fileSystems` section. --- modules/hosts/nixos/nixnuc/containers/audiobookshelf.nix | 2 +- modules/hosts/nixos/nixnuc/hardware-configuration.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/hosts/nixos/nixnuc/containers/audiobookshelf.nix b/modules/hosts/nixos/nixnuc/containers/audiobookshelf.nix index f7d97a0..a8cfe19 100644 --- a/modules/hosts/nixos/nixnuc/containers/audiobookshelf.nix +++ b/modules/hosts/nixos/nixnuc/containers/audiobookshelf.nix @@ -1,5 +1,5 @@ { ... }: let - volume_base = "/orico/audiobookshelf"; + volume_base = "/var/lib/audiobookshelf"; http_port = "13378"; in { # Audiobookshelf diff --git a/modules/hosts/nixos/nixnuc/hardware-configuration.nix b/modules/hosts/nixos/nixnuc/hardware-configuration.nix index 9fa404c..21ca6a5 100644 --- a/modules/hosts/nixos/nixnuc/hardware-configuration.nix +++ b/modules/hosts/nixos/nixnuc/hardware-configuration.nix @@ -23,6 +23,11 @@ fsType = "vfat"; }; + fileSystems."/var/lib/audiobookshelf" = + { device = "orico/audiobookshelf"; + fsType = "zfs"; + }; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking