Skip to content

Commit

Permalink
nix(module): Open port by default
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Jul 12, 2024
1 parent be20d47 commit 31a35a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

let
inherit (lib) mkEnableOption mkOption mkPackageOption mkIf singleton;
inherit (lib.types) port string;
inherit (lib.types) port string bool;

cfg = config.services.sakaya;
in
Expand All @@ -12,7 +12,11 @@ in

package = mkPackageOption pkgs "sakaya" { };

openFirewall = mkEnableOption "open port in the firewall needed for sakaya server";
openFirewall = mkOption {
type = bool;
default = true;
description = "Whether to automatically open the specified port in the firewall.";
};

address = mkOption {
type = string;
Expand Down

0 comments on commit 31a35a7

Please sign in to comment.