From bede6932a527086b304017e2e0d0295f661efd9a Mon Sep 17 00:00:00 2001 From: op Date: Fri, 17 May 2024 09:31:26 +0100 Subject: add radicale, flaresolverr --- hosts/laurel/configuration.nix | 18 ++++++++++++++++++ hosts/laurel/hardware-configuration.nix | 7 +++++++ hosts/laurel/servarr.nix | 8 +++++++- 3 files changed, 32 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index a2559ae..84e5a83 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -167,6 +167,24 @@ }; }; + services.radicale = { + enable = true; + settings = { + server.hosts = [ "0.0.0.0:5232" ]; + auth = { + type = "htpasswd"; + htpasswd_filename = "/etc/radicale/users"; + htpasswd_encryption = "bcrypt"; + }; + }; + }; + services.nginx.virtualHosts."radicale.laurel" = { + listen = [{ port = 80; addr = "0.0.0.0"; }]; + locations."/" = { + proxyPass = "http://127.0.0.1:5232"; + }; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/hosts/laurel/hardware-configuration.nix b/hosts/laurel/hardware-configuration.nix index 142c4a7..cd34eae 100644 --- a/hosts/laurel/hardware-configuration.nix +++ b/hosts/laurel/hardware-configuration.nix @@ -20,6 +20,13 @@ fsType = "ext4"; }; + fileSystems."/servarr" = + { + device = "/dev/sdb"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { device = "/dev/disk/by-uuid/FDC2-EFD1"; diff --git a/hosts/laurel/servarr.nix b/hosts/laurel/servarr.nix index e300759..cc225c1 100644 --- a/hosts/laurel/servarr.nix +++ b/hosts/laurel/servarr.nix @@ -1,8 +1,12 @@ -{ config, lib, pkgs, ... }: +{ self, config, lib, pkgs, ... }: { imports = [ ]; + nixpkgs.overlays = with self.overlays; [ + flaresolverr + ]; + users.groups."torrent".members = [ "op" "sonarr" @@ -96,6 +100,8 @@ }; }; + services.flaresolverr.enable = true; + } -- cgit v1.2.3