This commit is contained in:
commit
f8b68daf1e
|
@ -1416,13 +1416,24 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
users.groups.audiobookshelf = {};
|
||||||
|
users.users.audiobookshelf = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "audiobookshelf";
|
||||||
|
};
|
||||||
services.audiobookshelf = {
|
services.audiobookshelf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/storage/audiobookshelf";
|
dataDir = "/storage/audiobookshelf";
|
||||||
port = 8523;
|
port = 8523;
|
||||||
};
|
};
|
||||||
|
systemd.services.audiobookshelf.serviceConfig = {
|
||||||
|
WorkingDirectory = lib.mkForce config.services.audiobookshelf.dataDir;
|
||||||
|
StateDirectory = lib.mkForce config.services.audiobookshelf.dataDir;
|
||||||
|
Group = "audiobookshelf";
|
||||||
|
User = "audiobookshelf";
|
||||||
|
};
|
||||||
services.caddy.virtualHosts."audio.lyte.dev" = {
|
services.caddy.virtualHosts."audio.lyte.dev" = {
|
||||||
extraConfig = ''reverse_proxy :8523'';
|
extraConfig = ''reverse_proxy :${toString config.services.audiobookshelf.port}'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -1440,6 +1451,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
||||||
# TODO: declarative directory quotas? for storage/$USER and /home/$USER
|
# TODO: declarative directory quotas? for storage/$USER and /home/$USER
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
aria2
|
||||||
restic
|
restic
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
zfs
|
zfs
|
||||||
|
|
|
@ -341,7 +341,7 @@ in {
|
||||||
ConfigureWithoutCarrier = true;
|
ConfigureWithoutCarrier = true;
|
||||||
# IPv6AcceptRA = false;
|
# IPv6AcceptRA = false;
|
||||||
IPv6SendRA = true;
|
IPv6SendRA = true;
|
||||||
DHCPv6PrefixDelegation = true;
|
DHCPPrefixDelegation = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue