A myriad of Qyriad on Nostr: so. I realize this is an incredibly cursed question but Is there any way to serialize ...
so. I realize this is an incredibly cursed question but
Is there any way to serialize a Nix function as Nix source?
In other words, can I take a Nix expression in Nix source, and then output it as something that can then be evaluated as a Nix expression elsewhere?
#NixOS
Published at
2023-10-29 22:40:30Event JSON
{
"id": "d827da42893d59ef638089ad205b21183a07c33b1c710f22898d08ae320fead2",
"pubkey": "77e3869c93c8fc9f90674eeb288ac12d1808d8ed075cc7321dcc605447065dd5",
"created_at": 1698619230,
"kind": 1,
"tags": [
[
"t",
"nixos"
],
[
"proxy",
"https://chaos.social/users/Qyriad/statuses/111320709874669044",
"activitypub"
]
],
"content": "so. I realize this is an incredibly cursed question but\n\nIs there any way to serialize a Nix function as Nix source?\n\nIn other words, can I take a Nix expression in Nix source, and then output it as something that can then be evaluated as a Nix expression elsewhere?\n\n#NixOS",
"sig": "079588ae4a7379452a087b3f1e2f194dafb4d787b151af4b974ab8ff6ac6db5f9da76f3368b3e8b9765fa67d90bca94aca9b3e911c3c64096a2e3ca27cc48f82"
}