mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-22 08:08:29 +03:00
change lightsail boot device to /dev/nvme0n1 (#186)
* change lightsail boot device to /dev/nvme0n1 Signed-off-by: iosmanthus <myosmanthustree@gmail.com> * fix missing import Signed-off-by: iosmanthus <myosmanthustree@gmail.com> --------- Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
parent
20b43baa2a
commit
095fcbc28d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue