From 4f3efdf496b70b7cae15cb399c4af427291ac688 Mon Sep 17 00:00:00 2001 From: Gonne Date: Thu, 6 Mar 2025 09:49:08 +0100 Subject: [PATCH] Don't fail installer machine if no drives to install on are mounted --- nixos/machines/nodens/hardware-configuration.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nixos/machines/nodens/hardware-configuration.nix b/nixos/machines/nodens/hardware-configuration.nix index ebb45bc..756354c 100644 --- a/nixos/machines/nodens/hardware-configuration.nix +++ b/nixos/machines/nodens/hardware-configuration.nix @@ -30,16 +30,28 @@ fileSystems."/mnt/persist" = { device = "/dev/disk/by-label/nixos"; fsType = "btrfs"; - options = ["subvol=persist"]; + options = [ + "subvol=persist" + "users" # Allows any user to mount and unmount + "nofail" # Prevent system from failing if this drive doesn't mount + ]; }; fileSystems."/mnt/boot" = { device = "/dev/disk/by-label/boot"; fsType = "ext4"; + options = [ + "users" # Allows any user to mount and unmount + "nofail" # Prevent system from failing if this drive doesn't mount + ]; }; fileSystems."/mnt/nix" = { device = "/dev/disk/by-label/nixos"; fsType = "btrfs"; - options = ["subvol=nix"]; + options = [ + "subvol=nix" + "users" # Allows any user to mount and unmount + "nofail" # Prevent system from failing if this drive doesn't mount + ]; }; swapDevices = [{device = "/dev/disk/by-uuid/89e13a83-506a-43b4-b06a-09424500ceda";}]; -- 2.39.5