Calibre and cachix

This commit is contained in:
Giulio De Pasquale 2022-04-05 14:04:53 +02:00
parent c47d25c943
commit c18f4a590e
4 changed files with 38 additions and 3 deletions

View File

@ -11,4 +11,3 @@ in {
inherit imports;
nix.binaryCaches = ["https://cache.nixos.org/"];
}

View File

@ -9,4 +9,3 @@
];
};
}

View File

@ -0,0 +1,35 @@
{ lib, ... }:
let
domain = "books.giugl.io";
network = import ./network.nix;
in {
services = {
calibre-web = {
enable = true;
group = "media";
options = {
enableBookConversion = true;
enableBookUploading = true;
};
};
nginx.virtualHosts.${domain} = {
locations."/" = {
proxyPass = "http://localhost:8083";
extraConfig = ''
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
'';
users.groups.media.members = [ "calibre-web" ];
}

View File

@ -25,7 +25,7 @@ in {
./dns.nix
#./minecraft.nix
./prowlarr.nix
./plex.nix
# ./plex.nix
./githubrunner.nix
./libreddit.nix
./invidious.nix
@ -36,6 +36,8 @@ in {
./jellyfin.nix
./prosody.nix
./deluge.nix
# ./calibre.nix
../../cachix.nix
];
time.timeZone = "Europe/Rome";