-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardware.nix
45 lines (39 loc) · 862 Bytes
/
hardware.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"virtio_pci"
"virtio_scsi"
"usbhid"
"ata_piix"
"uhci_hcd"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/ba398682-9547-45a5-858a-aad7620c10a3";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1FC5-9E05";
fsType = "vfat";
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 8 * 1024;
}
];
# Ensure consistent network interface name
boot.kernelParams = [ "net.ifnames=0" ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}