From 6a3d080566c008856b2eb13a6a451cfbd4d21189 Mon Sep 17 00:00:00 2001 From: Louis Pearson Date: Sat, 6 Jan 2024 14:41:24 -0700 Subject: [PATCH] feat: add ZFS --- configuration.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 1fdb19e..1bb2c1b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,7 +12,18 @@ # Use the `systemd-boot` boot loader boot.loader.systemd-boot.enable = true; - + + # Added following instructions of openzfs configuration + # randomly generated with `head -c4 /dev/urandom | od -A none -t x4` + networking.hostId = "3e52e44f"; + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + + # fileSystems."/zroot" = + # { device = "dev/disk/by-uuid/"; + # fsType = "ext4"; + # }; + networking.hostName = "samsehu"; # Define your hostname. # Pick only one of the below networking options.