54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./disko.nix
|
|
./hardware-configuration.nix
|
|
./vfio.nix
|
|
../../modules/nixos/networking/default.nix
|
|
../../modules/nixos/virtualization/default.nix
|
|
../../modules/nixos/common.nix
|
|
../../modules/nixos/fonts.nix
|
|
../../modules/nixos/services.nix
|
|
../../modules/nixos/users/tulg.nix
|
|
];
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
};
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
protonup-ng
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
open = false;
|
|
powerManagement.enable = false;
|
|
prime = {
|
|
offload.enable = true;
|
|
offload.enableOffloadCmd = true;
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
amdgpuBusId = "PCI:19:0:0";
|
|
};
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
networking.hostName = "virgil";
|
|
|
|
system.stateVersion = "25.05"; # Did you read the comment?
|
|
}
|