about summary refs log tree commit diff
path: root/modules/system
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-09 11:19:50 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-09 11:19:50 -0700
commit23234600b9755ec6401872ea74e14b6fccde3fa3 (patch)
tree18241084c094866b3074ab546c4967093ef0839f /modules/system
parentadd pcmanfm and easyeffects (diff)
downloadworld-23234600b9755ec6401872ea74e14b6fccde3fa3.tar.gz
install documentations (man)
Diffstat (limited to '')
-rw-r--r--modules/system/default.nix9
-rw-r--r--modules/system/documentation/default.nix14
2 files changed, 19 insertions, 4 deletions
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 ];
+}