about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-26 10:12:57 +0900
committersefidel <contact@sefidel.net>2023-08-26 10:15:39 +0900
commit076d0705ed7b392c1d099e942b5957228609c7ea (patch)
tree26c92377c0720c35216710e251a156d98a0352af
parent6ac33ae4e637cc2e514fc11d199faa4eac7637ae (diff)
downloadnixrc-076d0705ed7b392c1d099e942b5957228609c7ea.tar.gz
nixrc-076d0705ed7b392c1d099e942b5957228609c7ea.zip
feat(nixos/alpha)!: allow hibernation on zfs
-rw-r--r--nixos/alpha/configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 2dbcb0a..1d02ccf 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -21,6 +21,9 @@
   boot.initrd.supportedFilesystems = [ "zfs" ];
   boot.supportedFilesystems = [ "zfs" ];
   boot.zfs.enableUnstable = true;
+  boot.zfs.forceImportRoot = false;
+  boot.zfs.forceImportAll = false;
+  boot.zfs.allowHibernation = true; # NOTE: disable if using swap on ZFS
 
   # GRUB bootloader
   boot.loader.efi.canTouchEfiVariables = true;
@@ -93,6 +96,8 @@
   services.zfs.autoScrub.enable = true;
   services.zfs.autoScrub.pools = [ "rpool" ];
 
+
+
   services.openssh.enable = true;
   services.openssh.settings.PasswordAuthentication = false;
   services.openssh.hostKeys = [