This repository has been archived on 2026-07-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nixos/modules/services/zfs/auto-mount-volumes.nix
T
beatzaplenty 6e332a6bbd
Check NixOS configurations / eval-hosts (push) Failing after 14m47s
add boot include to zfs mount module
2026-07-13 03:33:09 +10:00

12 lines
320 B
Nix

{ pkgs, boot, ... }:
{
boot.postBootCommands = ''
echo "=== STARTING ZPOOL IMPORT ==="
${pkgs.zfs_unstable}/bin/zpool import -a -N -d /dev/disk/by-path
${pkgs.zfs_unstable}/bin/zpool status
${pkgs.zfs_unstable}/bin/zfs mount -a
${pkgs.zfs_unstable}/bin/zfs list
echo "=== ZPOOL IMPORT COMPLETE ==="
'';
}