mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-18 14:28:15 +00:00
* nixos: remove with lib * nix-darwin: remove with lib * home-manager: remove with lib * modules/accounts: remove with lib * modules/config: remove with lib * modules/i18n: remove with lib * modules/misc: remove with lib * modules: remove with lib * modules/targets: remove with lib * tests/modules/firefox: remove with lib * tests/modules/services: remove with lib
24 lines
677 B
Nix
24 lines
677 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
options.home = {
|
|
enableDebugInfo = lib.mkEnableOption "" // {
|
|
description = ''
|
|
Some Nix packages provide debug symbols for
|
|
{command}`gdb` in the `debug` output.
|
|
This option ensures that those are automatically fetched from
|
|
the binary cache if available and {command}`gdb` is
|
|
configured to find those symbols.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.home.enableDebugInfo {
|
|
home.extraOutputsToInstall = [ "debug" ];
|
|
|
|
home.sessionVariables = {
|
|
NIX_DEBUG_INFO_DIRS =
|
|
"$NIX_DEBUG_INFO_DIRS\${NIX_DEBUG_INFO_DIRS:+:}${config.home.profileDirectory}/lib/debug";
|
|
};
|
|
};
|
|
}
|