From 30f8fea050f3242f0e6a2072779e706b5c8ceaf1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 03:42:25 +0530 Subject: refactor(modules): introduce cfg local bindings and submodule option types --- modules/office/zathura/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/office') diff --git a/modules/office/zathura/default.nix b/modules/office/zathura/default.nix index db742ec..dd49c72 100644 --- a/modules/office/zathura/default.nix +++ b/modules/office/zathura/default.nix @@ -2,8 +2,12 @@ { config, lib, + pkgs, ... }: +let + cfg = config.office.zathura; +in { options.office.zathura = { enable = lib.mkEnableOption "Enables zathura."; @@ -15,7 +19,7 @@ }; }; - config = lib.mkIf config.office.zathura.enable { + config = lib.mkIf cfg.enable { programs.zathura = { enable = true; }; -- cgit v1.2.3