25 lines
516 B
Nix
25 lines
516 B
Nix
{ ... }:
|
|
{
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
autoResize = true;
|
|
};
|
|
|
|
boot = {
|
|
growPartition = true;
|
|
kernelParams = [ "console=tty1" ];
|
|
loader.grub = {
|
|
enable = true;
|
|
device = "/dev/vda";
|
|
extraConfig = ''
|
|
serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1
|
|
terminal_output console serial
|
|
terminal_input console serial
|
|
'';
|
|
};
|
|
};
|
|
|
|
systemd.services."serial-getty@tty1".enable = true;
|
|
}
|