From 076d0705ed7b392c1d099e942b5957228609c7ea Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 26 Aug 2023 10:12:57 +0900 Subject: feat(nixos/alpha)!: allow hibernation on zfs --- nixos/alpha/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/alpha/configuration.nix') 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 = [ -- cgit 1.4.1