From b1a2522f05c23ad8795985d827c059afb367c2cf Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:31 +0200 Subject: [PATCH] nixos/fcast-receiver: remove `with lib;` --- nixos/modules/programs/fcast-receiver.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nixos/modules/programs/fcast-receiver.nix b/nixos/modules/programs/fcast-receiver.nix index 2e4e6bf8b242..73e13cd1bc8d 100644 --- a/nixos/modules/programs/fcast-receiver.nix +++ b/nixos/modules/programs/fcast-receiver.nix @@ -1,7 +1,4 @@ { config, lib, pkgs, ... }: - -with lib; - let cfg = config.programs.fcast-receiver; in @@ -11,20 +8,20 @@ in }; options.programs.fcast-receiver = { - enable = mkEnableOption "FCast Receiver"; - openFirewall = mkOption { - type = types.bool; + enable = lib.mkEnableOption "FCast Receiver"; + openFirewall = lib.mkOption { + type = lib.types.bool; default = false; description = '' Open ports needed for the functionality of the program. ''; }; - package = mkPackageOption pkgs "fcast-receiver" { }; + package = lib.mkPackageOption pkgs "fcast-receiver" { }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; - networking.firewall = mkIf cfg.openFirewall { + networking.firewall = lib.mkIf cfg.openFirewall { allowedTCPPorts = [ 46899 ]; }; };