nixos-config/machines/vm1/hardware-configuration.nix

31 lines
741 B
Nix
Raw Normal View History

2021-11-12 17:10:17 +01:00
# 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
, ...
2022-03-01 22:19:03 +01:00
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
2021-11-12 17:10:17 +01:00
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
2021-11-12 17:10:17 +01:00
2022-03-01 22:19:03 +01:00
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
2021-11-12 17:10:17 +01:00
2022-03-01 22:19:03 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
2021-11-12 17:10:17 +01:00
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
2021-11-12 17:10:17 +01:00
}