diff --git a/flake.lock b/flake.lock index 860d865f..4c66acab 100644 --- a/flake.lock +++ b/flake.lock @@ -283,11 +283,11 @@ ] }, "locked": { - "lastModified": 1777518431, - "narHash": "sha256-SwgiG2T5pbyo33Vz7/vUCAhEMgwCK8Pa2nDSx5a6/WE=", + "lastModified": 1777985523, + "narHash": "sha256-EpCQ/5AnnQABMeZpxXKt/Z+tUAI7k8c1DNR8/tWW8Do=", "owner": "nix-community", "repo": "home-manager", - "rev": "2e54a938cdd4c8e414b2518edc3d82308027c670", + "rev": "5a15505146ffd149dd88126562209028220c93e3", "type": "github" }, "original": { diff --git a/home/gabriel/features/cli/default.nix b/home/gabriel/features/cli/default.nix index d47481ea..9880c043 100644 --- a/home/gabriel/features/cli/default.nix +++ b/home/gabriel/features/cli/default.nix @@ -17,6 +17,7 @@ ./xpo.nix ./fzf.nix ./jira.nix + ./mandoc.nix ]; home.packages = with pkgs; [ comma # Install and run programs by sticking a , before them diff --git a/home/gabriel/features/cli/mandoc.nix b/home/gabriel/features/cli/mandoc.nix new file mode 100644 index 00000000..0adcf4c1 --- /dev/null +++ b/home/gabriel/features/cli/mandoc.nix @@ -0,0 +1,7 @@ +{ + programs.man = { + # Performance regression. See https://github.com/NixOS/nixpkgs/issues/513348 + man-db.enable = false; + mandoc.enable = true; + }; +} diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index 27ebb1a2..31e3ad03 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -27,6 +27,7 @@ ./kdeconnect.nix ./upower.nix ./display-manager.nix + ./mandoc.nix ] ++ (builtins.attrValues outputs.nixosModules); diff --git a/hosts/common/global/mandoc.nix b/hosts/common/global/mandoc.nix new file mode 100644 index 00000000..d6242dc4 --- /dev/null +++ b/hosts/common/global/mandoc.nix @@ -0,0 +1,7 @@ +{ + documentation.man = { + # Performance regression. See https://github.com/NixOS/nixpkgs/issues/513348 + man-db.enable = false; + mandoc.enable = true; + }; +}