More boot defaults
This commit is contained in:
parent
a6dd9b6407
commit
d24b956278
2 changed files with 16 additions and 2 deletions
15
hardware/default.nix
Normal file
15
hardware/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, modulesPath, lib, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${modulesPath}/profiles/qemu-guest.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
boot.growPartition = true;
|
||||||
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
|
||||||
|
fileSystems."/" = lib.mkDefault { device = "/dev/vda1"; fsType = "ext4"; };
|
||||||
|
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,11 +1,10 @@
|
||||||
{ config, modulesPath, lib, ... }:
|
{ config, modulesPath, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
"${modulesPath}/profiles/qemu-guest.nix"
|
./.
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.useDHCP = true;
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
|
boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
|
||||||
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
Loading…
Reference in a new issue