1
Fork 0
satellite/hosts/nixos/lapetus/zfs.nix

13 lines
372 B
Nix
Raw Normal View History

2023-07-18 16:39:38 +02:00
{ config, ... }: {
# Configure ZFS
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.extraPools = [ "zroot" ];
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelParams = [ "nohibernate" ];
# Roll back to blank snapshot on boot
# boot.initrd.postDeviceCommands = lib.mkAfter ''
# zfs rollback -r zroot@blank
# '';
}