From a60a4b45ace443f239f193b2b63b2bedcc3bd254 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 9 Nov 2021 01:06:53 +0100 Subject: [PATCH] nixosModules.heliwatch: fix self --- flake.nix | 2 +- heliwatch/module.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c381ec4..1126aaf 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,6 @@ nativeBuildInputs ++ buildInputs; }; }) // { - nixosModules.heliwatch = import ./heliwatch/module.nix; + nixosModules.heliwatch = import ./heliwatch/module.nix { inherit self; }; }; } diff --git a/heliwatch/module.nix b/heliwatch/module.nix index de1b178..e8ad997 100644 --- a/heliwatch/module.nix +++ b/heliwatch/module.nix @@ -1,3 +1,4 @@ +{ self }: { config, lib, pkgs, ... }: { options.services.heliwatch = with lib; { enable = mkEnableOption "Enable Heliwatch MUC bot";