initial commit here we are
This commit is contained in:
commit
82916ad718
59 changed files with 2155 additions and 0 deletions
33
appserver/server1/nixos/audiobook.nix
Normal file
33
appserver/server1/nixos/audiobook.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ configs, pkgs, ... }:
|
||||
let
|
||||
audioBookShelfPort = 8000;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.audiobookshelf
|
||||
];
|
||||
systemd.services = {
|
||||
audiobookshelf = {
|
||||
description = "Audiobookshelf";
|
||||
wantedBy = ["multi-user.target"];
|
||||
restartIfChanged = true;
|
||||
environment = {
|
||||
PORT = builtins.toString audioBookShelfPort;
|
||||
HOST = "0.0.0.0";
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = "5";
|
||||
ExecStart = ''
|
||||
${pkgs.audiobookshelf}/bin/audiobookshelf
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ audioBookShelfPort ];
|
||||
#services.audiobookshelf.enable = true;
|
||||
#services.audiobookshelf.host = 0.0.0.0 ;
|
||||
#services.audiobookshelf.port = 8000;
|
||||
#services.audiobookshelf.openFirewall = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue