fmt
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -127,5 +127,5 @@ with lib; let
|
||||
'';
|
||||
};
|
||||
in {
|
||||
config.environment.systemPackages = [ nixarr-command ];
|
||||
config.environment.systemPackages = [nixarr-command];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user