From f363ae71a596a011b67c177b1fe495c6548013ad Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 23 Jul 2023 22:02:06 +0200 Subject: [PATCH] hosts: nixos: porthos: boot: use '/dev/disk/by-id' Somehow `/dev/sda` and `/dev/sdb` switched around, so use a more stable path. --- hosts/nixos/porthos/boot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/nixos/porthos/boot.nix b/hosts/nixos/porthos/boot.nix index f0cb925..fbc5db7 100644 --- a/hosts/nixos/porthos/boot.nix +++ b/hosts/nixos/porthos/boot.nix @@ -7,7 +7,7 @@ loader.grub = { enable = true; # Define on which hard drive you want to install Grub. - device = "/dev/sda"; + device = "/dev/disk/by-id/ata-HGST_HUS724020ALA640_PN2181P6J58M1P"; }; initrd = {