From c52de0c9caeec1df2dae4514fd8371e68eb3f66e Mon Sep 17 00:00:00 2001 From: janabhumi Date: Sat, 3 Sep 2022 22:49:15 +0300 Subject: [PATCH] system/home: use disk by uuid to write grub --- system/machine/home/default.nix | 2 +- system/machine/home/hardware-configuration.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/system/machine/home/default.nix b/system/machine/home/default.nix index 620fd88..b2b3857 100644 --- a/system/machine/home/default.nix +++ b/system/machine/home/default.nix @@ -14,7 +14,7 @@ in loader.grub = { enable = true; version = 2; - device = "/dev/sda"; + device = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b"; dedsec-theme = { enable = true; diff --git a/system/machine/home/hardware-configuration.nix b/system/machine/home/hardware-configuration.nix index 72f9ded..5a6b152 100644 --- a/system/machine/home/hardware-configuration.nix +++ b/system/machine/home/hardware-configuration.nix @@ -30,7 +30,9 @@ }; }; - swapDevices = [{ device = "/dev/disk/by-uuid/1be15503-cd51-4c57-bb91-04f45a964202"; }]; + swapDevices = [ + { device = "/dev/disk/by-uuid/78272c86-4ca0-4054-92d0-761501aad0d8"; } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's