mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
# 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,
|
||
...
|
||
}: {
|
||
imports = [
|
||
../profiles/desktop.nix
|
||
../profiles/nvidiagpu.nix
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = ["vmd" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||
boot.kernelModules = ["kvm-intel"];
|
||
boot.extraModulePackages = [];
|
||
|
||
boot.kernelParams = let vfio-pci-devs = ["10de:2482" "10de:228b"]; in ["intel_iommu=on" ("vfio-pci.ids=" + lib.concatStringsSep "," vfio-pci-devs)];
|
||
|
||
virtualisation.libvirtd = {
|
||
enable = true;
|
||
qemu.ovmf.enable = true;
|
||
qemu.swtpm.enable = true;
|
||
qemu.ovmf.packages = [
|
||
(pkgs.OVMF.override (old: {
|
||
secureBoot = true;
|
||
tpmSupport = true;
|
||
}))
|
||
.fd
|
||
];
|
||
};
|
||
|
||
environment.systemPackages = with pkgs; [virt-manager libvirt virtiofsd];
|
||
|
||
virtualisation.spiceUSBRedirection.enable = true;
|
||
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/18ed28ca-03c5-4ed8-8a31-fac727b74722";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/DFEC-14F2";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices = [];
|
||
|
||
networking.hostName = "glassbox";
|
||
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|