Skip to content

Commit

Permalink
Merge pull request nix-community#152 from nix-community/raw-efi-boot
Browse files Browse the repository at this point in the history
raw-efi-boot fixes
  • Loading branch information
Lassulus authored Apr 26, 2022
2 parents 3cc7d08 + 8fa0a1f commit 3cdf22c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion formats/raw-efi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
efiInstallAsRemovable = true;
};

system.build.raw = lib.mkOverride 999 (import "${toString modulesPath}/../lib/make-disk-image.nix" {
fileSystems."/boot" = {
device = "/dev/vda1";
fsType = "vfat";
};

system.build.raw = lib.mkOverride 99 (import "${toString modulesPath}/../lib/make-disk-image.nix" {
inherit lib config pkgs;
partitionTableType = "efi";
diskSize = "auto";
Expand Down
2 changes: 1 addition & 1 deletion formats/vm-nogui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let
IFS=';t' read -r _ rows cols _ < /dev/tty
stty "$old"
stty cols "$cols" rows "$rows"
]
fi
''; # https://unix.stackexchange.com/questions/16578/resizable-serial-console-window
in {
imports = [
Expand Down

0 comments on commit 3cdf22c

Please sign in to comment.