Yann Büchau :python: on Nostr: :nixos: #nix question: How do get the 'myValue' as a value into my configuration.nix? ...
#nix question:
How do get the 'myValue' as a value into my configuration.nix?
> nix-build <nixpkgs/nixos> -I nixos-config=myconfig.nix -A vm --argstr myKey myValue
#askFedi
Published at
2024-07-09 07:30:43Event JSON
{
"id": "9d3ff0f238d88dc9cb8bc6409e1340fc9efb16033ae9d385ff87fae21b66048c",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1720510243,
"kind": 1,
"tags": [
[
"t",
"nix"
],
[
"t",
"askfedi"
],
[
"emoji",
"nixos",
"https://cdn.fosstodon.org/custom_emojis/images/000/062/778/original/48d6a1983312ea5a.png"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/112755359312365448",
"activitypub"
]
],
"content": ":nixos: #nix question:\n\nHow do get the 'myValue' as a value into my configuration.nix?\n\n\u003e nix-build \u003cnixpkgs/nixos\u003e -I nixos-config=myconfig.nix -A vm --argstr myKey myValue\n\n#askFedi",
"sig": "c5e8a811b663e5bda76a1bff3c9bdfa2c5f075d4de293fb24dd9f7a89894d91c61e17ec957b59855c83e22f219fc319f1738cfdb682fe0ecd350c7503b7f68ee"
}