Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e43420ea9222
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 43a3d8dc29e4
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 20, 2019

  1. nixos/lidarr: Add dataDir option

    This will bring this module to a state to be consistent with how the
    other forks (sonarr & radarr) works.
    etu committed Oct 20, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    thoughtpolice Austin Seipp
    Copy the full SHA
    9319dd1 View commit details

Commits on Oct 22, 2019

  1. Merge pull request #71461 from etu/lidarr-specify-datadir-option

    nixos/lidarr: Add dataDir option
    aanderse authored Oct 22, 2019
    Copy the full SHA
    43a3d8d View commit details
Showing with 11 additions and 4 deletions.
  1. +11 −4 nixos/modules/services/misc/lidarr.nix
15 changes: 11 additions & 4 deletions nixos/modules/services/misc/lidarr.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@ in
services.lidarr = {
enable = mkEnableOption "Lidarr";

dataDir = mkOption {
type = types.str;
default = "/var/lib/lidarr/.config/Lidarr";
description = "The directory where Lidarr stores its data files.";
};

package = mkOption {
type = types.package;
default = pkgs.lidarr;
@@ -44,6 +50,10 @@ in
};

config = mkIf cfg.enable {
systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0700 ${cfg.user} ${cfg.group} - -"
];

systemd.services.lidarr = {
description = "Lidarr";
after = [ "network.target" ];
@@ -53,11 +63,8 @@ in
Type = "simple";
User = cfg.user;
Group = cfg.group;
ExecStart = "${cfg.package}/bin/Lidarr";
ExecStart = "${cfg.package}/bin/Lidarr -nobrowser -data='${cfg.dataDir}'";
Restart = "on-failure";

StateDirectory = "lidarr";
StateDirectoryMode = "0770";
};
};