From de5c62db29d39f7d24e6ecd79f7bd16288e55844 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:36 +0200 Subject: [PATCH] nixos/services.liquidsoap: remove `with lib;` --- nixos/modules/services/audio/liquidsoap.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/audio/liquidsoap.nix b/nixos/modules/services/audio/liquidsoap.nix index bd35e01b60d6..ece282f0568f 100644 --- a/nixos/modules/services/audio/liquidsoap.nix +++ b/nixos/modules/services/audio/liquidsoap.nix @@ -1,7 +1,4 @@ { config, lib, pkgs, ... }: - -with lib; - let streams = builtins.attrNames config.services.liquidsoap.streams; @@ -29,7 +26,7 @@ in options = { - services.liquidsoap.streams = mkOption { + services.liquidsoap.streams = lib.mkOption { description = '' Set of Liquidsoap streams to start, @@ -38,7 +35,7 @@ in default = {}; - example = literalExpression '' + example = lib.literalExpression '' { myStream1 = "/etc/liquidsoap/myStream1.liq"; myStream2 = ./myStream2.liq; @@ -46,13 +43,13 @@ in } ''; - type = types.attrsOf (types.either types.path types.str); + type = lib.types.attrsOf (lib.types.either lib.types.path lib.types.str); }; }; ##### implementation - config = mkIf (builtins.length streams != 0) { + config = lib.mkIf (builtins.length streams != 0) { users.users.liquidsoap = { uid = config.ids.uids.liquidsoap;