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