diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-09 11:19:50 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-09 11:19:50 -0700 |
commit | 23234600b9755ec6401872ea74e14b6fccde3fa3 (patch) | |
tree | 18241084c094866b3074ab546c4967093ef0839f | |
parent | add pcmanfm and easyeffects (diff) | |
download | world-23234600b9755ec6401872ea74e14b6fccde3fa3.tar.gz |
install documentations (man)
-rw-r--r-- | home/default.nix | 1 | ||||
-rw-r--r-- | home/documentation/default.nix | 9 | ||||
-rw-r--r-- | modules/system/default.nix | 9 | ||||
-rw-r--r-- | modules/system/documentation/default.nix | 14 |
4 files changed, 29 insertions, 4 deletions
diff --git a/home/default.nix b/home/default.nix index ce3139e..42ea925 100644 --- a/home/default.nix +++ b/home/default.nix @@ -3,6 +3,7 @@ { imports = [ ./beets + ./documentation ./element ./emacs ./feh diff --git a/home/documentation/default.nix b/home/documentation/default.nix new file mode 100644 index 0000000..047239e --- /dev/null +++ b/home/documentation/default.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: { + # Add documentation for user packages + config.programs.man = { + enable = true; + generateCaches = true; # Enables the use of `apropos` etc... + }; + + config.programs.info.enable = true; +} diff --git a/modules/system/default.nix b/modules/system/default.nix index 32f560b..bf3e367 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -2,14 +2,15 @@ { imports = [ - ./packages ./boot + ./btrfs ./console + ./documentation + ./fonts ./locale ./nix - ./users + ./packages ./security - ./btrfs - ./fonts + ./users ]; } diff --git a/modules/system/documentation/default.nix b/modules/system/documentation/default.nix new file mode 100644 index 0000000..67f84ff --- /dev/null +++ b/modules/system/documentation/default.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: { + documentation = { + enable = true; + dev.enable = true; + info.enable = true; + man = { + enable = true; + generateCaches = true; + }; + nixos.enable = true; + }; + + environment.systemPackages = with pkgs; [ man-pages man-pages-posix ]; +} |