aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorop <[email protected]>2024-05-17 09:31:26 +0100
committerop <[email protected]>2024-05-17 09:31:26 +0100
commitbede6932a527086b304017e2e0d0295f661efd9a (patch)
tree59ea73a70bdccce10079cb26b4e55da0de9fc826 /hosts
parented0965f80620c7183a863730cfa4282db4aaa777 (diff)
add radicale, flaresolverr
Diffstat (limited to 'hosts')
-rw-r--r--hosts/laurel/configuration.nix18
-rw-r--r--hosts/laurel/hardware-configuration.nix7
-rw-r--r--hosts/laurel/servarr.nix8
3 files changed, 32 insertions, 1 deletions
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 @@
167 }; 167 };
168 }; 168 };
169 169
170 services.radicale = {
171 enable = true;
172 settings = {
173 server.hosts = [ "0.0.0.0:5232" ];
174 auth = {
175 type = "htpasswd";
176 htpasswd_filename = "/etc/radicale/users";
177 htpasswd_encryption = "bcrypt";
178 };
179 };
180 };
181 services.nginx.virtualHosts."radicale.laurel" = {
182 listen = [{ port = 80; addr = "0.0.0.0"; }];
183 locations."/" = {
184 proxyPass = "http://127.0.0.1:5232";
185 };
186 };
187
170 188
171 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 189 nix.settings.experimental-features = [ "nix-command" "flakes" ];
172 190
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 @@
20 fsType = "ext4"; 20 fsType = "ext4";
21 }; 21 };
22 22
23 fileSystems."/servarr" =
24 {
25 device = "/dev/sdb";
26 fsType = "ext4";
27 };
28
29
23 fileSystems."/boot" = 30 fileSystems."/boot" =
24 { 31 {
25 device = "/dev/disk/by-uuid/FDC2-EFD1"; 32 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 @@
1{ config, lib, pkgs, ... }: 1{ self, config, lib, pkgs, ... }:
2 2
3{ 3{
4 imports = [ ]; 4 imports = [ ];
5 5
6 nixpkgs.overlays = with self.overlays; [
7 flaresolverr
8 ];
9
6 users.groups."torrent".members = [ 10 users.groups."torrent".members = [
7 "op" 11 "op"
8 "sonarr" 12 "sonarr"
@@ -96,6 +100,8 @@
96 }; 100 };
97 }; 101 };
98 102
103 services.flaresolverr.enable = true;
104
99} 105}
100 106
101 107