calibre-web added CACHE_DIRECTORY variable
This commit is contained in:
parent
11d97b4be0
commit
fa33f258fc
4 changed files with 34 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
|||
./services/calibre-web.nix
|
||||
./services/glances.nix
|
||||
./services/fail2ban.nix
|
||||
./services/transmission.nix
|
||||
# ./services/transmission.nix
|
||||
];
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -167,7 +167,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|||
|
||||
# Docker
|
||||
# maybe I don't need? haven't used Docker yet. Disabled for now
|
||||
/*
|
||||
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
|
@ -175,13 +175,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
# rootless = {
|
||||
# enable = true;
|
||||
# setSocketVariable = true;
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
|
|
|
@ -23,4 +23,16 @@
|
|||
#Using Caddy on VPS. Don't need this.
|
||||
services.nginx.enable = false;
|
||||
|
||||
# CACHE_DIRECTORY environment variable
|
||||
# explanation: https://github.com/janeczku/calibre-web/issues/3343
|
||||
# https://github.com/janeczku/calibre-web/issues/3278
|
||||
systemd.services.calibre-web = {
|
||||
environment = {
|
||||
CACHE_DIR = "/var/cache/calibre-web";
|
||||
};
|
||||
serviceConfig = {
|
||||
CacheDirectory = "calibre-web";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
9
services/cryptpad.nix
Normal file
9
services/cryptpad.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
# not finished
|
||||
services.cryptpad= {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
|
@ -12,6 +12,13 @@
|
|||
settings = {
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
transmission
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue