fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , pkgs , lib , ...} : 2 3with lib ; 4 5{ 6options . home = { 7enableDebugInfo = mkEnableOption "" // { 8description = '' 9Some Nix packages provide debug symbols for 10{command}`gdb` in the `debug` output. 11This option ensures that those are automatically fetched from 12the binary cache if available and {command}`gdb` is 13configured to find those symbols. 14'' ; 15}; 16}; 17 18config = mkIf config . home . enableDebugInfo { 19home . extraOutputsToInstall = [ "debug" ]; 20 21home . sessionVariables = { 22NIX_DEBUG_INFO_DIRS = 23"$NIX_DEBUG_INFO_DIRS\${NIX_DEBUG_INFO_DIRS:+:} ${ config . home . profileDirectory } /lib/debug" ; 24}; 25}; 26}