forgejo/module.nix: inherit mkEnableOption
This commit is contained in:
parent
92ba05f9cf
commit
18a45773bb
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
}: let
|
||||
inherit (pkgs) fetchurl;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (config.services.forgejo) customDir user group;
|
||||
|
||||
cfg = config.modules.system.services.forgejo;
|
||||
|
@ -16,7 +17,7 @@
|
|||
acmeRoot = "/var/lib/acme/challenges-forgejo";
|
||||
dataDir = "/srv/data/forgejo";
|
||||
in {
|
||||
options.modules.system.services.forgejo.enable = lib.mkEnableOption "forgejo";
|
||||
options.modules.system.services.forgejo.enable = mkEnableOption "forgejo";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.system.services = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue