From 59180328cda59817d71cd58c8f48ead047375064 Mon Sep 17 00:00:00 2001 From: azahi Date: Mon, 17 Feb 2025 02:21:56 +0300 Subject: 2025-02-17 --- modules/hydra.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'modules/hydra.nix') diff --git a/modules/hydra.nix b/modules/hydra.nix index 85b89ab..785e3e9 100644 --- a/modules/hydra.nix +++ b/modules/hydra.nix @@ -1,26 +1,25 @@ { config, lib, ... }: -with lib; let cfg = config.nixfiles.modules.hydra; in { options.nixfiles.modules.hydra = { - enable = mkEnableOption "Hydra"; + enable = lib.mkEnableOption "Hydra"; - domain = mkOption { + domain = lib.mkOption { description = "Domain name sans protocol scheme."; - type = with types; str; + type = lib.types.str; default = "hydra.${config.networking.domain}"; }; - port = mkOption { + port = lib.mkOption { description = "Port."; - type = with types; port; + type = lib.types.port; default = 7754; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { nixfiles.modules = { nginx = { enable = true; -- cgit 1.4.1