From f1c9bf23236e66f2e494a4418af9a19a0cbf1c33 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 7 Sep 2025 12:09:23 -0600 Subject: [PATCH] posixlycorrect: add zfs external disk for backups and storage --- sys/platforms/posixlycorrect/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/platforms/posixlycorrect/default.nix b/sys/platforms/posixlycorrect/default.nix index cf91bc2..dc8d45d 100644 --- a/sys/platforms/posixlycorrect/default.nix +++ b/sys/platforms/posixlycorrect/default.nix @@ -26,8 +26,7 @@ paths = [ "/home/fabian/nix" "/home/fabian/safe" - "/extern/var/media" - "/extern/var/fsociety_backup" + "/xtern/backup" ]; repoName = "posixlycorrect"; }; @@ -47,6 +46,7 @@ networking = { hostName = "posixlycorrect"; networkmanager.enable = true; + hostId = "0414a727"; useDHCP = false; # The global useDHCP flag is deprecated, therefore explicitly set to false here. interfaces.enp7s0.useDHCP = true; # Per-interface useDHCP will be mandatory in the future, so this generated config @@ -59,7 +59,11 @@ efi.canTouchEfiVariables = true; }; tmp.useTmpfs = true; - kernelPackages = pkgs.linuxPackages_latest; + supportedFilesystems = [ "zfs" ]; + zfs = { + forceImportRoot = false; + useKeyringForCredentials = true; + }; }; time.timeZone = "America/Costa_Rica";