27 lines
613 B
Nix
27 lines
613 B
Nix
{ lib, ... }:
|
|
|
|
# Used only by the guest's /etc/nixos flake. Bootstrap image partitioning
|
|
# comes from nixos-generators (see common.nix for virtio drivers).
|
|
# Verify labels with `lsblk -f` before the first self-rebuild.
|
|
|
|
{
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/ESP";
|
|
fsType = "vfat";
|
|
options = [
|
|
"fmask=0077"
|
|
"dmask=0077"
|
|
];
|
|
};
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|