{pkgs, ...}: { boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; kernelParams = ["sysrq_always_enabled=1"]; }; hardware = { opengl = { enable = true; driSupport = true; driSupport32Bit = true; }; nvidia = { modesetting.enable = true; nvidiaPersistenced = true; open = true; nvidiaSettings = false; prime = { offload = { enable = true; enableOffloadCmd = true; }; intelBusId = "PCI:00:02:0"; nvidiaBusId = "PCI:01:00:0"; }; }; }; networking = { hostName = "quadraticpc"; networkmanager.enable = true; }; services = { earlyoom = { enable = true; enableNotifications = true; }; xserver = { enable = true; displayManager.gdm.enable = true; desktopManager.gnome.enable = true; layout = "us"; videoDrivers = ["nvidia"]; }; pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; #jack.enable = true; }; printing.enable = true; auto-cpufreq.enable = true; }; environment = { shellAliases = { neofetch = "nvidia-offload neowofetch"; }; sessionVariables = { MANGOHUD = "1"; XDG_DATA_HOME = "$HOME/.local/share"; EDITOR = "micro"; VISUAL = "micro"; NIXOS_OZONE_WL = "1"; fish_greeting = ""; }; systemPackages = with pkgs; ([ tldr tuba gimp heroic nodejs killall armcord hyfetch inkscape r2modman libreoffice nodePackages.pnpm hunspellDicts.en_CA-large wineWowPackages.stagingFull ] ++ (with gnomeExtensions; [ caffeine pop-shell app-hider appindicator search-light aylurs-widgets just-perfection burn-my-windows fullscreen-avoider compiz-windows-effect ]) ++ (with gst_all_1; [ gst-plugins-good gst-plugins-bad gst-plugins-ugly ])); }; programs = { steam.enable = true; fish.interactiveShellInit = "neofetch"; }; zramSwap = { enable = true; memoryPercent = 100; }; system = { autoUpgrade = { enable = true; flake = "/home/quadradical/.config/nixos/flake.nix"; operation = "boot"; }; stateVersion = "23.05"; }; sound.enable = true; hardware.pulseaudio.enable = false; }