more vm tweak

This commit is contained in:
Nathan McCarty 2023-04-26 00:32:13 -04:00
parent 2161c12daa
commit c4578fbec9
No known key found for this signature in database
1 changed files with 21 additions and 6 deletions

View File

@ -6,19 +6,33 @@
{
imports = [ ];
boot.initrd.availableKernelModules = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules =
[ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/af524dfe-a89e-4527-908d-eabdb09a3c71";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/af524dfe-a89e-4527-908d-eabdb09a3c71";
fsType = "ext4";
};
"/mnt/hgfs" = {
device = ".host:/";
fsType = "fuse./run/current-system/sw/bin/vmhgfs-fuse";
options = [
"umask=22"
"uid=1000"
"gid=1000"
"allow_other"
"defaults"
"auto_unmount"
];
};
};
swapDevices =
[ { device = "/dev/disk/by-uuid/6d1d7bfa-676a-4b81-ba92-5ba110375814"; }
];
[{ device = "/dev/disk/by-uuid/6d1d7bfa-676a-4b81-ba92-5ba110375814"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
@ -28,5 +42,6 @@
# networking.interfaces.ens33.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}