user5484: 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')


user382: 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.

5484: <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>
 382: <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>
