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
This commit is contained in:
Lin Jian 2026-03-01 12:50:22 +08:00
commit a9bbe999f1
No known key found for this signature in database
GPG key ID: A6698D36434F75A5

View file

@ -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" ];
};
})
]