36 lines
994 B
Nix
36 lines
994 B
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.loader.grub.extraConfig = ''
|
||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
||
terminal_input serial;
|
||
terminal_output serial;
|
||
'';
|
||
boot.loader.grub.forceInstall = true;
|
||
# boot.loader.grub.enable = true;
|
||
boot.loader.grub.device = "nodev";
|
||
boot.loader.timeout = 10;
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/sda";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices =
|
||
[ { device = "/dev/sdb"; }
|
||
];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
}
|