man: use cfg when possible
This commit is contained in:
parent
6c76fb5b12
commit
ccf650bb5b
|
@ -46,12 +46,12 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.programs.man.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
home.extraOutputsToInstall = [ "man" ];
|
home.extraOutputsToInstall = [ "man" ];
|
||||||
|
|
||||||
# This is mostly copy/pasted/adapted from NixOS' documentation.nix.
|
# 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
|
".manpath".text = let
|
||||||
# Generate a directory containing installed packages' manpages.
|
# Generate a directory containing installed packages' manpages.
|
||||||
manualPages = pkgs.buildEnv {
|
manualPages = pkgs.buildEnv {
|
||||||
|
|
Loading…
Reference in a new issue