ZFS: Difference between revisions
imported>ElvishJerricco m minor clarification about importing at boot |
imported>Ryantm |
||
Line 18: | Line 18: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
## In /etc/nixos/configuration.nix: | ## In /etc/nixos/configuration.nix: | ||
boot.zfs.extraPools = [ "zpool_name"]; | boot.zfs.extraPools = [ "zpool_name" ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
or if you are using legacy mountpoints add a fileSystems entry and NixOS will automatically detect that the pool needs to be imported: | or if you are using legacy mountpoints, add a <syntaxhighlight lang="nix" inline>fileSystems</syntaxhighlight> entry and NixOS will automatically detect that the pool needs to be imported: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> |