about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/default.nix1
-rw-r--r--home/documentation/default.nix9
-rw-r--r--modules/system/default.nix9
-rw-r--r--modules/system/documentation/default.nix14
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 ];
+}