Nix Installation Guide: Difference between revisions
imported>Symphorien →WSL: the sqlite locking mode patch is also needed on WSL |
imported>Symphorien →NFS: use an override to install a patched nix so that the patch is picked when updating |
||
Line 50: | Line 50: | ||
Nix is hard to build by hand, but you can still use vanilla nix without concurrent use, so you can install nix with a NFS store as follows: | Nix is hard to build by hand, but you can still use vanilla nix without concurrent use, so you can install nix with a NFS store as follows: | ||
* Install nix with the vanilla binary installer | * Install nix with the vanilla binary installer | ||
* Create a file <code> | * Create a file <code>~/.config/nixpkgs/config.nix</code> as follows, and place the patch above alongside it. | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
{ | |||
nix.overrideAttrs (old: { | packageOverrides = pkgs: { | ||
patches = (old. | nix = pkgs.nix.overrideAttrs (old: { | ||
patches = (old.patches or []) ++ [ ./nfs.patch ]; | |||
}); | |||
} | }; | ||
} | |||
</syntaxHighlight> | </syntaxHighlight> | ||
* Run <code>nix-env - | * Run <code>nix-env -iA nixpkgs.nix</code> to compile and install the new, patched nix. | ||
* From then on, you can use nix concurrently without risk of corrupting the sqlite database. | * From then on, you can use nix concurrently without risk of corrupting the sqlite database. | ||