From 73159725809bbf8d002fd8bb7694233da94d80ba Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sat, 7 Sep 2024 12:19:07 +0200 Subject: [PATCH] fix module --- module.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/module.nix b/module.nix index 62b3fdc..6d5ab9d 100644 --- a/module.nix +++ b/module.nix @@ -1,18 +1,15 @@ -{ config, lib, ... }: - -with lib; +{ config, pkgs, lib, ... }: let cfg = config.services.gobot; defaultUser = "gobot"; - - inherit (lib) optionalAttrs; + inherit (lib) mkEnableOption mkMerge mkPackageOption mkOption mkIf types optionalAttrs; in { options.services.gobot = { enable = mkEnableOption "Gobot Telegram bot"; - package = mkPackageOption self.packages "gobot" { }; + package = mkPackageOption pkgs "gobot" { }; user = mkOption { type = types.str;