mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
man: use cfg when possible
This commit is contained in:
parent
6c76fb5b12
commit
ccf650bb5b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue