calibre needs to use path it can read

This commit is contained in:
Noah Masur 2022-10-02 02:47:10 +00:00
parent 015c393274
commit 8a97d9b2da

View File

@ -2,7 +2,7 @@
let
libraryPath = "${config.homePath}/media/books";
libraryPath = "/var/lib/calibre-server";
in {
@ -23,19 +23,6 @@ in {
};
};
home-manager.users.${config.user}.home.activation = {
# Always create library directory if it doesn't exist
calibreLibrary =
config.home-manager.users.${config.user}.lib.dag.entryAfter
[ "writeBoundary" ] ''
if [ ! -d "${libraryPath}" ]; then
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG ${libraryPath}
fi
'';
};
};
}