<p>It seems like this is a single user installation. Are you running the nix command as the same user that installed nix? That would explain the unable to open database file error. You could validate this looking at the permissions/ownership of the sqlite file in question.</p>
<p>To allow nix-command and flakes, you can create <code>/etc/nix/nix.conf</code> with the contents:</p>
<pre><code>experimental-features = nix-command flakes
</code></pre>
<p>I'd also recommend adding the binary caches in that file as well.</p>

CC BY-SA 4.0
2022-01-20T18:01:20.780Z
Thanks this error got cleared.Thanks
basseyefe
CC BY-SA 4.0
2022-01-20T14:28:55.403Z
2022-01-20T14:28:55.403Z
Samuel Leathers
<p>I have this error when I try to build plutus</p>
<pre><code>:~/code/plutus$ nix build -f default.nix plutus.haskell.packages.plutus-core
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
</code></pre>
<p>I also tried this, but I am still getting errors</p>
<pre><code>:~/code/plutus$ nix --extra-experimental-features nix-command build -f default.nix plutus-apps.haskell.packages.plutus-core.components.library
error: executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')
</code></pre>

CC BY-SA 4.0
2022-01-22T11:53:52.173Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
<plutus><plutus-pioneer-program>
Nix build error: experimental Nix feature 'nix-command' is disabled
# Nix build error: experimental Nix feature 'nix-command' is disabled

(Asked by: username_0 on 2022-01-20)

I have this error when I try to build plutus
:~/code/plutus$ nix build -f default.nix plutus.haskell.packages.plutus-core
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override

I also tried this, but I am still getting errors
:~/code/plutus$ nix --extra-experimental-features nix-command build -f default.nix plutus-apps.haskell.packages.plutus-core.components.library
error: executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')

**Tags:** plutus, plutus-pioneer-program
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  

---

## 1 answers

### Answer by username_2 on 2022-01-20. Score: 3

It seems like this is a single user installation. Are you running the nix command as the same user that installed nix? That would explain the unable to open database file error. You could validate this looking at the permissions/ownership of the sqlite file in question.
To allow nix-command and flakes, you can create /etc/nix/nix.conf with the contents:
experimental-features = nix-command flakes

I'd also recommend adding the binary caches in that file as well.

> **Comments:**
> **username_0**: Thanks this error got cleared.Thanks  

---

