Fix audiobookshelf, add aria2 as a system package
Some checks failed
/ check (push) Failing after 3m37s
Some checks failed
/ check (push) Failing after 3m37s
This commit is contained in:
parent
0984c7aef0
commit
66e96e2960
1 changed files with 13 additions and 1 deletions
|
@ -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 = {
|
||||
enable = true;
|
||||
dataDir = "/storage/audiobookshelf";
|
||||
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" = {
|
||||
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
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
aria2
|
||||
restic
|
||||
btrfs-progs
|
||||
zfs
|
||||
|
|
Loading…
Reference in a new issue