adding audiobookshelf to nix
This commit is contained in:
parent
543c78db6c
commit
0f3c4b3e1b
17
modules/audiobookshelf.nix
Normal file
17
modules/audiobookshelf.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
port = "8999";
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"abs.cochrun.xyz".extraConfig = ''
|
||||
reverse_proxy localhost:${services.audiobookshelf.port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
../../modules/base.nix
|
||||
../../modules/servers.nix
|
||||
../../pkgs/base-packages.nix
|
||||
../../modules/audiobookshelf.nix
|
||||
];
|
||||
|
||||
networking.hostName = "dalinar"; # Define your hostname.
|
||||
|
|
Loading…
Reference in a new issue