This commit is contained in:
rasmus-kirk
2025-06-01 21:20:55 +02:00
parent 56884039bf
commit c423ae2a04
2 changed files with 207 additions and 203 deletions
+8 -4
View File
@@ -116,8 +116,12 @@ in {
}; };
config = let config = let
host = if cfg.vpn.enable then "192.168.15.1" else "127.0.0.1"; host =
in mkIf (nixarr.enable && cfg.enable) { if cfg.vpn.enable
then "192.168.15.1"
else "127.0.0.1";
in
mkIf (nixarr.enable && cfg.enable) {
assertions = [ assertions = [
{ {
assertion = cfg.vpn.enable -> nixarr.vpn.enable; assertion = cfg.vpn.enable -> nixarr.vpn.enable;
@@ -170,8 +174,8 @@ in {
systemd.services.audiobookshelf = { systemd.services.audiobookshelf = {
description = "Audiobookshelf is a self-hosted audiobook and podcast server"; description = "Audiobookshelf is a self-hosted audiobook and podcast server";
after = [ "network.target" ]; after = ["network.target"];
wantedBy = [ "multi-user.target" ]; wantedBy = ["multi-user.target"];
serviceConfig = { serviceConfig = {
IOSchedulingPriority = 0; IOSchedulingPriority = 0;
+1 -1
View File
@@ -127,5 +127,5 @@ with lib; let
''; '';
}; };
in { in {
config.environment.systemPackages = [ nixarr-command ]; config.environment.systemPackages = [nixarr-command];
} }