From 1b337d31f84f903d79f7fffd387442bd0f63ec76 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 17 Oct 2024 14:39:31 +0200 Subject: [PATCH] Use NVME as root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné --- m/hut/configuration.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/m/hut/configuration.nix b/m/hut/configuration.nix index f232df2..b349877 100644 --- a/m/hut/configuration.nix +++ b/m/hut/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = [ @@ -23,11 +23,15 @@ ]; # Select the this using the ID to avoid mismatches - boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; + boot.loader.grub.device = "/dev/disk/by-id/nvme-INTEL_SSDPED1D960GAY_PHMB81220017960EGN"; - fileSystems."/nvme" = { - fsType = "ext4"; - device = "/dev/disk/by-label/nvme"; + fileSystems = { + "/" = lib.mkForce { + device = "/dev/disk/by-label/nixos-nvme"; + fsType = "ext4"; + neededForBoot = true; + options = [ "noatime" ]; + }; }; networking = {