add ycontre glow plymouth theme (theme images not pushed to repo), add gpu passthrough capabilities

This commit is contained in:
2024-11-18 15:25:27 +01:00
parent ca18ecf4e2
commit 18518fb9a5
7 changed files with 94 additions and 26 deletions

View File

@ -6,16 +6,26 @@
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;
networking.firewall.allowedTCPPorts = [ 11470 12470 80 443 5000 ];
networking.firewall.allowedUDPPorts = [ 11470 12470 80 443 5000 ];
environment.systemPackages = with pkgs; [
acpi
tlp
looking-glass-client
fprintd
];
hardware.nvidia.prime.offload = {
@ -28,4 +38,12 @@
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
];
};
}

View File

@ -3,4 +3,8 @@
{
programs.steam.enable=true;
programs.steam.protontricks.enable=true;
environment.systemPackages = with pkgs; [ qemu quickemu];
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
}