We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent e93465c commit d62f29aCopy full SHA for d62f29a
nixos/modules/config/debug-info.nix
@@ -30,14 +30,15 @@ with lib;
30
};
31
32
33
- config = {
+ config = mkIf config.environment.enableDebugInfo {
34
35
# FIXME: currently disabled because /lib is already in
36
# environment.pathsToLink, and we can't have both.
37
#environment.pathsToLink = [ "/lib/debug/.build-id" ];
38
39
- environment.extraOutputsToInstall =
40
- optional config.environment.enableDebugInfo "debug";
+ environment.extraOutputsToInstall = [ "debug" ];
+
41
+ environment.variables.NIX_DEBUG_INFO_DIRS = [ "/run/current-system/sw/lib/debug" ];
42
43
44
0 commit comments