home: put modules into folders
This commit is contained in:
parent
5b0e0bcbc2
commit
dc5a44ce82
24 changed files with 23 additions and 23 deletions
17
home/documentation/default.nix
Normal file
17
home/documentation/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.documentation;
|
||||
in
|
||||
{
|
||||
options.my.home.documentation = with lib.my; {
|
||||
enable = mkDisableOption "documentation integration";
|
||||
};
|
||||
|
||||
# Add documentation for user packages
|
||||
config.programs.man = {
|
||||
enable = cfg.enable;
|
||||
generateCaches = true; # Enables the use of `apropos` etc...
|
||||
};
|
||||
|
||||
config.programs.info.enable = cfg.enable;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue