From 5aab046d7b7dec64b8398017c4357d4c7633abcb Mon Sep 17 00:00:00 2001 From: Stefan Kempinger Date: Mon, 8 Dec 2025 02:19:40 +0100 Subject: [PATCH] added zfs to hardware config --- configuration.nix | 6 ++++++ hardware-configuration.nix | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index be38af3..32b06c7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,6 +32,9 @@ # "net.bridge.bridge-nf-call-iptables" = 1; # "net.bridge.bridge-nf-call-ip6tables" = 1; }; + + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; # Console and locale console = { @@ -44,6 +47,7 @@ # Networking networking.hostName = "nixos-server"; networking.useDHCP = false; + networking.hostId = "5506a8e7"; networking.interfaces.eth0.ipv4.addresses = [ { address = "192.168.69.69"; @@ -93,6 +97,8 @@ nixfmt systemd inetutils + smartmontools + parted nil ]; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 8e22173..00fcea4 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -24,14 +24,12 @@ }; swapDevices = [ ]; + + fileSystems."/backup" = { + device = "backup"; + fsType = "zfs"; + }; - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp39s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp41s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode =