configurations for my servers and desktops
nix
nixos
flake
dots
dotfiles
1{
2 lib,
3 modulesPath,
4 ...
5}: {
6 imports = [(modulesPath + "/profiles/qemu-guest.nix")];
7
8 boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" "virtio_pci" "virtio_scsi" "sd_mod"];
9 boot.initrd.kernelModules = ["nvme"];
10 boot.kernelModules = ["kvm-intel"];
11 boot.extraModulePackages = [];
12
13 fileSystems."/" = {
14 device = "/dev/sda1";
15 fsType = "ext4";
16 };
17
18 boot.loader.grub.device = "/dev/sda";
19
20 swapDevices = [];
21
22 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
23}