<p>There are two ways of fixing this issue:</p>
<p><strong>Temporary</strong></p>
<p>Add <code>--experimental-features 'nix-command flakes'</code> when calling the <code>nix-shell</code> command.</p>
<p><strong>Permanent</strong></p>
<p>Edit either <code>~/.config/nix/nix.conf</code> or <code>/etc/nix/nix.conf</code> and add:</p>
<pre><code>experimental-features = nix-command flakes
</code></pre>
<p>For more information you can refer to: <a href="https://github.com/input-output-hk/plutus-apps/#nix-1" rel="nofollow noreferrer">https://github.com/input-output-hk/plutus-apps/#nix-1</a></p>

CC BY-SA 4.0
2023-01-03T12:23:05.090Z
This is in plutus-apps nix config https://github.com/input-output-hk/plutus-apps/#nix-1
james
CC BY-SA 4.0
2023-01-03T19:24:36.810Z
Thank you. I have edited the answer to include that link instead of the one from Nix.
Falcon Stakepool
CC BY-SA 4.0
2023-01-02T22:59:59.617Z
2023-01-03T19:23:20.603Z
2023-01-03T19:23:20.603Z
Falcon Stakepool
<p>I am getting...</p>
<pre><code>error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
</code></pre>
<p>...when trying to run <code>nix-shell</code> from <code>plutus-apps</code> repo.</p>
<p>Does anybody know how I can enable <code>flakes</code>?</p>
<p>I am using the latest commit <code>7952b9d30d15779a7fd8103bdbc9612d5df18ec2</code>.</p>

<plutus><nix><nix-shell><nixos>
Error when executing nix-shell in plutus-apps
# Error when executing nix-shell in plutus-apps

(Asked by: username_0 on 2023-01-02)

I am getting...
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override

...when trying to run nix-shell from plutus-apps repo.
Does anybody know how I can enable flakes?
I am using the latest commit 7952b9d30d15779a7fd8103bdbc9612d5df18ec2.

**Tags:** plutus, nix, nix-shell, nixos

---

## 1 answers

### Answer by username_0 on 2023-01-02. Score: 2 | Accepted answer

There are two ways of fixing this issue:
Temporary
Add --experimental-features 'nix-command flakes' when calling the nix-shell command.
Permanent
Edit either ~/.config/nix/nix.conf or /etc/nix/nix.conf and add:
experimental-features = nix-command flakes

For more information you can refer to: https://github.com/input-output-hk/plutus-apps/#nix-1

> **Comments:**
> **username_1**: This is in plutus-apps nix config https://github.com/input-output-hk/plutus-apps/#nix-1  
> **username_0**: Thank you. I have edited the answer to include that link instead of the one from Nix.  

---

