Yann Büchau :python: on Nostr: Is there a :nixos: #nix pinning tool that just manages the $NIX_PATH environment ...
Is there a
#nix pinning tool that just manages the $NIX_PATH environment variable so that if you enter/use it, you can execute nix-build, nixos-rebuild or whatever as if you specified `-I nixpkgs=... -I nixos-unstable=... manually`?
I can't use flakes (e.g. no
#gitAnnex support) and currently I hand-roll nix wrappers with a command-runner (like just for example) that set the nix path so I can keep using <nixpkgs> in my nix files.
#nixos
Published at
2024-11-15 13:37:57Event JSON
{
"id": "0db956faff507798d00a7c0cec0831034219f7a27dfa74988c437aaa32977032",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1731677877,
"kind": 1,
"tags": [
[
"t",
"nix"
],
[
"t",
"gitannex"
],
[
"t",
"nixos"
],
[
"emoji",
"nixos",
"https://cdn.fosstodon.org/custom_emojis/images/000/062/778/original/48d6a1983312ea5a.png"
],
[
"emoji",
"gitannex",
"https://cdn.fosstodon.org/custom_emojis/images/000/783/010/original/3528483de125873c.png"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/113487241409766726",
"activitypub"
]
],
"content": "Is there a :nixos: #nix pinning tool that just manages the $NIX_PATH environment variable so that if you enter/use it, you can execute nix-build, nixos-rebuild or whatever as if you specified `-I nixpkgs=... -I nixos-unstable=... manually`?\n\nI can't use flakes (e.g. no :gitannex: #gitAnnex support) and currently I hand-roll nix wrappers with a command-runner (like just for example) that set the nix path so I can keep using \u003cnixpkgs\u003e in my nix files.\n\n#nixos",
"sig": "3a2ed3f59e82c1c8b7d4808c977e54ce6a8e3cb6dcc122c9b8e4de0e266f68d7e6d7cc4296875ad8e4cdec04f43729c0e9ef6cdcb85880f9fb803590056d49a5"
}