mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
The `optionsDocBook` function is deprecated in nixpkgs since nixos-23.11. This commit updates the manual and manpages to use commonmark formatted documentation instead of the deprecated docbook format.
1.1 KiB
1.1 KiB
How do I override the package used by a module?
By default Home Manager will install the package provided by your chosen
nixpkgs channel but occasionally you might end up needing to change
this package. This can typically be done in two ways.
-
If the module provides a
packageoption, such asprograms.beets.package, then this is the recommended way to perform the override. For example,programs.beets.package = pkgs.beets.override { enableCheck = true; }; -
If no
packageoption is available then you can typically override the relevant package using an overlay.For example, if you want to use the
programs.skimmodule but use theskimpackage from Nixpkgs unstable, then a configuration like{ pkgs, config, ... }: let pkgsUnstable = import <nixpkgs-unstable> {}; in { programs.skim.enable = true; nixpkgs.overlays = [ (self: super: { skim = pkgsUnstable.skim; }) ]; # … }should work OK.