Update hosts/server/configuration.nix
Check NixOS configurations / eval-hosts (push) Failing after 1s

This commit is contained in:
2026-07-01 22:17:33 +00:00
parent 837096ca28
commit 9685233553
+9 -2
View File
@@ -22,7 +22,7 @@
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
boot.zfs.package = pkgs.zfs_unstable; boot.zfs.package = pkgs.zfs_unstable;
boot.zfs.enabled = true; #boot.zfs.enabled = true;
# Mount server data # Mount server data
#fileSystems."/srv" = { #fileSystems."/srv" = {
# device = "/dev/disk/by-label/server-data"; # device = "/dev/disk/by-label/server-data";
@@ -43,7 +43,14 @@
#system.userActivationScripts.createSetupSymlink.text = '' #system.userActivationScripts.createSetupSymlink.text = ''
# ln -sf /mnt/docker-persistent-data/setup /home/nixos/setup # ln -sf /mnt/docker-persistent-data/setup /home/nixos/setup
#''; #'';
boot.postBootCommands = ''
echo "=== STARTING ZPOOL IMPORT ==="
${pkgs.zfs}/bin/zpool import -a -N -d /dev/disk/by-path
${pkgs.zfs}/bin/zpool status
${pkgs.zfs}/bin/zfs mount -a
${pkgs.zfs}/bin/zfs list
echo "=== ZPOOL IMPORT COMPLETE ==="
'';
services.zfs = { services.zfs = {
autoScrub.enable = true; autoScrub.enable = true;
autoSnapshot.enable = true; autoSnapshot.enable = true;