2024-01-17 11:16:36 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let secretMountpoint = "/hermes";
|
|
|
|
in
|
|
|
|
{
|
2023-07-18 16:39:38 +02:00
|
|
|
# Configure ZFS
|
2024-01-18 06:20:07 +01:00
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2023-07-18 16:39:38 +02:00
|
|
|
boot.zfs.extraPools = [ "zroot" ];
|
|
|
|
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
|
|
boot.kernelParams = [ "nohibernate" ];
|
|
|
|
|
2024-01-17 11:16:36 +01:00
|
|
|
boot.initrd.systemd.services = {
|
|
|
|
# # {{{ Rollback
|
|
|
|
# rollback = {
|
|
|
|
# path = [ pkgs.zfs ];
|
|
|
|
# serviceConfig = {
|
|
|
|
# Type = "oneshot";
|
|
|
|
# RemainAfterExit = true;
|
|
|
|
# };
|
|
|
|
# unitConfig.DefaultDependencies = "no";
|
|
|
|
# wantedBy = [ "initrd.target" ];
|
|
|
|
# after = [ "zfs-import.target" ];
|
|
|
|
# before = [ "sysroot.mount" ];
|
|
|
|
# script = "zfs rollback -r zroot@blank";
|
|
|
|
# };
|
|
|
|
# # }}}
|
|
|
|
};
|
2023-07-18 16:39:38 +02:00
|
|
|
}
|