From a54b476b12f4061c4c07a38b9a2898d06ee13a7a Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 14 Aug 2025 07:50:55 +0000 Subject: [PATCH] nix: ship debug info --- hosts/common/programs/nix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/common/programs/nix.nix b/hosts/common/programs/nix.nix index bac6d2d92..71aabc68b 100644 --- a/hosts/common/programs/nix.nix +++ b/hosts/common/programs/nix.nix @@ -1,7 +1,11 @@ -{ ... }: +{ pkgs, ... }: { sane.programs.nix = { # packageUnwrapped = pkgs.nixVersions.latest; #< XXX(2025-03-17): sometimes `nixVersions.latest` fails to eval T_T + packageUnwrapped = pkgs.nix.overrideAttrs (_: { + # ship debug info, used by gdb (/run/current-system/sw/lib/debug) + separateDebugInfo = true; + }); sandbox.method = null; #< TODO: sandbox ? env.NIXPKGS_ALLOW_UNFREE = "1"; #< FUCK OFF YOU'RE SO ANNOYING persist.byStore.plaintext = [