Reorganization
This commit is contained in:
parent
2821a76450
commit
aa3b8519f9
21 changed files with 241 additions and 204 deletions
25
modules/services/calibre-web.nix
Normal file
25
modules/services/calibre-web.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, ... }: {
|
||||
users.users.lucas.extraGroups = [ "multimedia" ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8083 ];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /data/calibre 0770 - multimedia - -"
|
||||
"d /data/calibre/library 0770 - multimedia - -"
|
||||
"d /data/calibre/config 0770 - multimedia - -"
|
||||
];
|
||||
|
||||
services.calibre-web = {
|
||||
enable = true;
|
||||
listen = {
|
||||
ip = "0.0.0.0";
|
||||
port = 8083;
|
||||
};
|
||||
options = { calibreLibrary = "/data/calibre/library"; };
|
||||
user = "calibre-web";
|
||||
group = "multimedia";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ calibre ];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue