mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 06:34:52 +00:00
calibre needs to use path it can read
This commit is contained in:
parent
015c393274
commit
8a97d9b2da
@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user