properly inherit enable on servers
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.servers.sabnzbd;
|
||||
in
|
||||
{
|
||||
options.my.servers.sabnzbd = {
|
||||
enable = lib.mkEnableOption "enable";
|
||||
@@ -8,9 +11,9 @@
|
||||
description = "The port to access sabnzbd web-ui";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.my.servers.sabnzbd.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.sabnzbd = {
|
||||
enable = true;
|
||||
inherit (cfg) enable;
|
||||
group = "piracy";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user