From 71ae9d96306821266c073468473644ec05833c78 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 26 Feb 2024 23:50:24 -0500 Subject: [PATCH] Infini-STICK: enable support for ZFS --- hosts/Infini-STICK/default.nix | 6 +++++- hosts/Infini-STICK/hardware-configuration.nix | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/Infini-STICK/default.nix b/hosts/Infini-STICK/default.nix index f7822f7..2d7f098 100644 --- a/hosts/Infini-STICK/default.nix +++ b/hosts/Infini-STICK/default.nix @@ -1,9 +1,13 @@ -{ lib, ... }: { +{ lib, config, ... }: { imports = [ ./hardware-configuration.nix ./filesystems.nix ]; + networking.hostId = "06a3f197"; + + boot.kernelPackages = lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages; + modules = { boot.grub.enable = true; hardware = { diff --git a/hosts/Infini-STICK/hardware-configuration.nix b/hosts/Infini-STICK/hardware-configuration.nix index d4c0012..385e273 100644 --- a/hosts/Infini-STICK/hardware-configuration.nix +++ b/hosts/Infini-STICK/hardware-configuration.nix @@ -10,7 +10,8 @@ boot.kernelModules = [ "kvm-amd" "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.kernelParams = [ "boot.shell_on_fail" ]; - boot.supportedFilesystems = [ "btrfs" ]; + boot.supportedFilesystems = [ "btrfs" "zfs" ]; + boot.zfs.forceImportRoot = false; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; info.model = "Portable Installation";