Files
nix-files/hosts/common/programs/nix.nix
2025-08-14 07:50:55 +00:00

17 lines
573 B
Nix

{ 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 = [
# ~/.cache/nix can become several GB; persisted to save RAM
".cache/nix"
];
};
}