Create bazarr.nix
This commit is contained in:
parent
a34a05e1ea
commit
a8adeb6174
1 changed files with 21 additions and 0 deletions
21
services/bazarr.nix
Normal file
21
services/bazarr.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# services/bazarr.nix
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||
|
||||
# Bazarr
|
||||
services.bazarr = {
|
||||
enable = true;
|
||||
openFirewall = true; # Opens port 7878
|
||||
dataDir = "/var/lib/bazarr";
|
||||
user = "bazarr";
|
||||
group = "media";
|
||||
};
|
||||
|
||||
users.users.bazarr = {
|
||||
isSystemUser = true;
|
||||
group = "media";
|
||||
extraGroups = [ "media" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue