From ccf650bb5badcf48054cf77f74ac85ea87c6f84c Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 3 Apr 2023 21:09:31 +0200 Subject: [PATCH] man: use cfg when possible --- modules/programs/man.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/man.nix b/modules/programs/man.nix index 69ae5cac7..f757fad5a 100644 --- a/modules/programs/man.nix +++ b/modules/programs/man.nix @@ -46,12 +46,12 @@ in { }; }; - config = mkIf config.programs.man.enable { + config = mkIf cfg.enable { home.packages = [ cfg.package ]; home.extraOutputsToInstall = [ "man" ]; # This is mostly copy/pasted/adapted from NixOS' documentation.nix. - home.file = mkIf config.programs.man.generateCaches { + home.file = mkIf cfg.generateCaches { ".manpath".text = let # Generate a directory containing installed packages' manpages. manualPages = pkgs.buildEnv {