From 47ca21dc02174b2a93ea064e011c68d225662e31 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Sat, 19 Jul 2025 21:47:04 +0000 Subject: [PATCH] Enable zfs pool --- smini/configuration.nix | 6 +++++- smini/hardware-configuration.nix | 11 +++++++++++ nixos/home-assistant.nix | 1 + 3 files changed, 17 insertions(+), 1 deletions(-) diff --git a/nixos/home-assistant.nix b/nixos/home-assistant.nix index a7b5e21..5c95894 100644 --- a/nixos/home-assistant.nix +++ b/nixos/home-assistant.nix @@ -35,6 +35,7 @@ "braviatv" "roku" "unifi" + "generic_thermostat" ]; config = { # Includes dependencies for a basic setup diff --git a/smini/configuration.nix b/smini/configuration.nix index 2b242f4..a042287 100644 --- a/smini/configuration.nix +++ b/smini/configuration.nix @@ -85,8 +85,12 @@ # List services that you want to enable: + services.nfs.server = { + enable = true; + }; + # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 80 443 8123 ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; diff --git a/smini/hardware-configuration.nix b/smini/hardware-configuration.nix index ece057f..c6d41da 100644 --- a/smini/hardware-configuration.nix +++ b/smini/hardware-configuration.nix @@ -12,6 +12,8 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.supportedFilesystems = [ "zfs" ]; + networking.hostId = "81fdcc33"; fileSystems."/" = { device = "/dev/disk/by-uuid/c5820e22-2f08-461e-8003-1e99d0e783e9"; @@ -25,6 +27,15 @@ options = [ "fmask=0077" "dmask=0077" ]; }; + boot.zfs = { + forceImportRoot = false; + extraPools = [ "pool" ]; + }; + services.zfs = { + autoScrub.enable = true; + trim.enable = true; + }; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking -- Gitblit v1.10.0