ZFS: Difference between revisions
imported>Ryantm No edit summary |
imported>Ryantm No edit summary |
||
Line 14: | Line 14: | ||
==Importing on boot== | ==Importing on boot== | ||
If you create a zpool, it will not be imported on the next boot unless you either add | If you create a zpool, it will not be imported on the next boot unless you either add the zpool name to <syntaxhighlight lang="nix" inline>boot.zfs.extraPools</syntaxhighlight: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
## In /etc/nixos/configuration.nix: | ## In /etc/nixos/configuration.nix: | ||
boot.zfs.extraPools = [ "zpool_name"]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
or add | or if you are using legacy mountpoints add a fileSystems entry: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
## In /etc/nixos/configuration.nix: | ## In /etc/nixos/configuration.nix: | ||
fileSystems."/mount/point" = { | |||
device = "zpool_name"; | |||
fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ]; | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||