diff --git a/configuration.nix b/configuration.nix index b8ce25a..4acecfd 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 = [ ... ]; diff --git a/services/calibre-web.nix b/services/calibre-web.nix index dc599f9..06ebb25 100644 --- a/services/calibre-web.nix +++ b/services/calibre-web.nix @@ -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"; + }; + }; + } diff --git a/services/cryptpad.nix b/services/cryptpad.nix new file mode 100644 index 0000000..766f985 --- /dev/null +++ b/services/cryptpad.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: +{ + +# not finished + services.cryptpad= { + enable = true; + }; + +} diff --git a/services/transmission.nix b/services/transmission.nix index cf77f56..4d0d33e 100644 --- a/services/transmission.nix +++ b/services/transmission.nix @@ -12,6 +12,13 @@ settings = { rpc-bind-address = "0.0.0.0"; }; + + environment.systemPackages = [ + transmission + ]; + }; + + }