From aea097cdc156fd4c04df4ad2c854b289a9f54d41 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 13 May 2024 20:01:04 +0300 Subject: [PATCH] Update fileSystems entry to use disk by-label --- hosts/disk/hardware.nix | 7 ++++++- hosts/tard/hardware.nix | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/disk/hardware.nix b/hosts/disk/hardware.nix index a6bc25e..5af3174 100644 --- a/hosts/disk/hardware.nix +++ b/hosts/disk/hardware.nix @@ -9,7 +9,12 @@ systemConfiguration { efi.canTouchEfiVariables = true; }; - boot.initrd.availableKernelModules = [ "ahci" "ata_piix" "nvme" "sr_mod" ]; + boot.initrd.availableKernelModules = [ + "ahci" + "ata_piix" + "nvme" + "sr_mod" + ]; fileSystems."/" = { device = "/dev/disk/by-label/root"; diff --git a/hosts/tard/hardware.nix b/hosts/tard/hardware.nix index 5054456..3cf4c2b 100644 --- a/hosts/tard/hardware.nix +++ b/hosts/tard/hardware.nix @@ -19,7 +19,7 @@ systemConfiguration { boot.initrd.kernelModules = [ "nvme" ]; fileSystems."/" = { - device = "/dev/vda1"; + device = "/dev/disk/by-label/root"; fsType = "ext4"; options = [ "noatime" ]; };