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/calibre-web.nix
|
||||||
./services/glances.nix
|
./services/glances.nix
|
||||||
./services/fail2ban.nix
|
./services/fail2ban.nix
|
||||||
./services/transmission.nix
|
# ./services/transmission.nix
|
||||||
];
|
];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -167,7 +167,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
# maybe I don't need? haven't used Docker yet. Disabled for now
|
# maybe I don't need? haven't used Docker yet. Disabled for now
|
||||||
/*
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker = {
|
docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -175,13 +175,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
rootless = {
|
# rootless = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
setSocketVariable = true;
|
# setSocketVariable = true;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
|
|
@ -23,4 +23,16 @@
|
||||||
#Using Caddy on VPS. Don't need this.
|
#Using Caddy on VPS. Don't need this.
|
||||||
services.nginx.enable = false;
|
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 = {
|
settings = {
|
||||||
rpc-bind-address = "0.0.0.0";
|
rpc-bind-address = "0.0.0.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
transmission
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue