mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
Added flaresolverr service and some other
This commit is contained in:
parent
5545b88992
commit
53554b019b
11 changed files with 333 additions and 1 deletions
46
modules/lidarr/default.nix
Normal file
46
modules/lidarr/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.luj.lidarr;
|
||||
port = 8686;
|
||||
in
|
||||
{
|
||||
|
||||
options.luj.lidarr = {
|
||||
|
||||
enable = mkEnableOption "activate lidarr service";
|
||||
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
default = "lidarr";
|
||||
description = "User account under which Lidarr runs.";
|
||||
};
|
||||
|
||||
group = mkOption {
|
||||
type = types.str;
|
||||
default = "lidarr";
|
||||
description = "Group under which Lidarr runs.";
|
||||
};
|
||||
|
||||
nginx.enable = mkEnableOption "activate nginx";
|
||||
nginx.subdomain = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (
|
||||
mkMerge [{
|
||||
services.lidarr = {
|
||||
enable = true;
|
||||
user = cfg.user;
|
||||
group = cfg.group;
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port) )]);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue