50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ config, lib, inputs, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
modules/game.nix
|
|
modules/nvidia.nix
|
|
modules/vboxHost.nix
|
|
];
|
|
|
|
boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "kvm_amd.npt=1" "kvm_amd.avic=1"];
|
|
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
|
# boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
|
|
boot.kernelModules = [ "vfio" "vfio-pci"];
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"f /dev/shm/looking-glass 0660 tom libvirtd -"
|
|
];
|
|
virtualisation.libvirtd.qemu.vhostUserPackages = with pkgs; [ virtiofsd ];
|
|
|
|
networking.hostName = "patate-douce";
|
|
networking.wireless.enable = true;
|
|
networking.networkmanager.enable = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
acpi
|
|
tlp
|
|
looking-glass-client
|
|
fprintd
|
|
];
|
|
|
|
hardware.nvidia.prime.offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
|
|
services.libinput.enable = true;
|
|
services.libinput.touchpad.clickMethod = "clickfinger";
|
|
services.libinput.touchpad.tapping = false;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = "ycontre-glow";
|
|
themePackages = [
|
|
inputs.plymouth-theme-ycontre-glow.defaultPackage.x86_64-linux
|
|
];
|
|
};
|
|
}
|