From 095fcbc28d3dd6edf80d567f781f423b4f913436 Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Mon, 11 Mar 2024 23:33:32 +0800 Subject: [PATCH] change lightsail boot device to /dev/nvme0n1 (#186) * change lightsail boot device to /dev/nvme0n1 Signed-off-by: iosmanthus * fix missing import Signed-off-by: iosmanthus --------- Signed-off-by: iosmanthus --- nixos-infect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 1b614bf..a190d7f 100644 --- a/nixos-infect +++ b/nixos-infect @@ -96,9 +96,10 @@ EOF makeLightsailConf() { mkdir -p /etc/nixos cat > /etc/nixos/configuration.nix << EOF -{ config, pkgs, modulesPath, ... }: +{ config, pkgs, modulesPath, lib, ... }: { imports = [ "\${modulesPath}/virtualisation/amazon-image.nix" ]; + boot.loader.grub.device = lib.mkForce "/dev/nvme0n1"; } EOF }