snowflake/hosts/tsuki/default.nix

94 lines
1.9 KiB
Nix
Raw Normal View History

2023-04-23 17:45:37 -04:00
{
2023-11-15 02:01:46 -05:00
inputs,
2023-04-09 18:01:28 -04:00
config,
pkgs,
...
2023-03-31 18:15:58 -04:00
}: {
2023-04-23 17:45:37 -04:00
imports = [
2023-11-15 02:01:46 -05:00
inputs.nix-gaming.nixosModules.pipewireLowLatency
2024-04-12 21:29:49 -04:00
inputs.nix-gaming.nixosModules.platformOptimizations
./hardware.nix
2023-06-02 23:30:30 -04:00
./services
./networking.nix
2024-01-03 14:09:25 -05:00
../../home/wayland
../../modules
../../modules/fonts.nix
2024-01-03 19:19:55 -05:00
../../pkgs/overlays.nix
2023-04-23 17:45:37 -04:00
];
2023-01-31 12:18:27 -05:00
virtualisation.libvirtd.enable = true;
services = {
pcscd.enable = true;
flatpak.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
lowLatency = {
enable = false; # disabled due to upstream issue
quantum = 64;
rate = 48000;
};
};
2023-01-31 12:18:27 -05:00
xserver = {
2023-04-23 17:45:37 -04:00
enable = true;
videoDrivers = ["nvidia"];
2024-02-06 10:47:23 -05:00
xkb = {
layout = "us";
variant = "";
};
};
};
security = {
rtkit.enable = true;
polkit.enable = true;
pam = {
services.hyprlock = {};
2023-11-15 02:01:46 -05:00
};
2023-01-31 12:18:27 -05:00
};
programs = {
gamemode.enable = true;
steam = {
enable = true;
2024-04-12 21:29:49 -04:00
platformOptimizations.enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
];
};
2023-01-31 12:18:27 -05:00
};
2023-04-23 17:45:37 -04:00
hardware = {
pulseaudio.enable = false;
2023-01-31 12:18:27 -05:00
nvidia = {
powerManagement.enable = true;
modesetting.enable = true;
2024-04-04 18:16:26 -04:00
package = config.boot.kernelPackages.nvidiaPackages.stable.overrideAttrs {
src = pkgs.fetchurl {
url = "https://download.nvidia.com/XFree86/Linux-x86_64/535.171.04/NVIDIA-Linux-x86_64-535.171.04.run";
sha256 = "0yj38aljmnr0c533d4hl5xjf9b3xm620fix4cp6qlpf99cxn9wg8";
};
};
2023-01-31 12:18:27 -05:00
};
opengl = {
2023-04-23 17:45:37 -04:00
enable = true;
2023-11-28 20:56:40 -05:00
extraPackages = [pkgs.nvidia-vaapi-driver];
2023-04-23 17:45:37 -04:00
};
2024-01-30 07:25:39 -05:00
opentabletdriver = {
enable = true;
daemon.enable = true;
};
};
2023-05-17 12:57:18 -04:00
2023-01-31 12:18:27 -05:00
environment.systemPackages = with pkgs; [
2023-10-28 08:51:09 -04:00
nil
2023-04-23 17:45:37 -04:00
dconf
libvirt
qemu_kvm
2024-04-12 21:29:49 -04:00
zulu
2023-04-23 17:45:37 -04:00
];
2023-01-31 12:18:27 -05:00
}