From a9bbe999f131b6cd2aabed661e6b30e19f06c403 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Sun, 1 Mar 2026 12:50:22 +0800 Subject: [PATCH] nixos/man-db: trigger mandb generation by multi-user.target default.target is an alias[1] to either multi-user.target or graphical.target. It makes a bit more sense to trigger mandb generation by multi-user.target since the generation does not depend on graphics. [1]: man bootup --- nixos/modules/misc/man-db.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/man-db.nix b/nixos/modules/misc/man-db.nix index bd5969770c1f..9fd686c43db1 100644 --- a/nixos/modules/misc/man-db.nix +++ b/nixos/modules/misc/man-db.nix @@ -136,7 +136,7 @@ in BindReadOnlyPaths = [ "/dev/null:/etc/man_db.conf" ]; # mandb will still read /etc/man_db.conf if it exists, even when setting -C path/to/config.conf ProtectSystem = "strict"; }; - wantedBy = [ "default.target" ]; + wantedBy = [ "multi-user.target" ]; }; }) ]