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
host = if cfg.vpn.enable then "192.168.15.1" else "127.0.0.1";
in mkIf (nixarr.enable && cfg.enable) {
host =
if cfg.vpn.enable
then "192.168.15.1"
else "127.0.0.1";
in
mkIf (nixarr.enable && cfg.enable) {
assertions = [
{
assertion = cfg.vpn.enable -> nixarr.vpn.enable;
@@ -170,8 +174,8 @@ in {
systemd.services.audiobookshelf = {
description = "Audiobookshelf is a self-hosted audiobook and podcast server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
after = ["network.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
IOSchedulingPriority = 0;
+1 -1
View File
@@ -127,5 +127,5 @@ with lib; let
'';
};
in {
config.environment.systemPackages = [ nixarr-command ];
config.environment.systemPackages = [nixarr-command];
}