fuckme
Some checks failed
CI / formatting (push) Failing after 9m22s
CI / nix_flake_check (push) Successful in 10m46s

This commit is contained in:
Narrator 2025-12-05 16:55:28 +01:00
parent b5202439d9
commit 31355b4b07
2 changed files with 15 additions and 8 deletions

View file

@ -16,7 +16,7 @@
fsType = "btrfs";
};
swapDevices = [
{ device = "/dev/disk/by-uuid/eba1bd66-08e0-4f9e-9546-aaef4ebcf5a2"; }
{ device = "/dev/disk/by-uuid/f9da6980-510f-4cce-bff5-50a791346c07"; }
];
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
@ -40,6 +40,7 @@
boot.loader.grub.gfxpayloadBios = "keep";
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["nvidia-drm.modeset=1" "nvidia.NVreg_PreserveVideoMemoryAllocations=1"];
networking.hostName = "nxs"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -85,6 +86,12 @@
};
windowManager.i3.enable = true;
videoDrivers = [ "nvidia" ];
deviceSection = ''
BusID "PCI:1:0:0" # lspci | grep VGA → find your busid
Driver "nvidia"
'';
};
# Configure keymap in X11
@ -192,9 +199,6 @@
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = [
"nvidia"
];
# Load nvidia driver for Xorg and Wayland
hardware.nvidia = {
@ -206,7 +210,7 @@
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
#powerManagement.enable = false;
powerManagement.enable = true;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
@ -228,6 +232,9 @@
package = config.boot.kernelPackages.nvidiaPackages.stable;
# SSH config:
};
systemd.services = {
systemd-suspend.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false";
systemd-hibernate.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; # if u care
};
}

View file

@ -16,8 +16,8 @@
fileSystems."/" =
{
device = "/dev/disk/by-uuid/9df74ba0-5121-41be-b0c3-2897142eee59";
fsType = "btrfs";
device = "/dev/disk/by-uuid/1743734a-753f-4ea8-b789-1ba80c14391c";
fsType = "ext4";
};
fileSystems."/boot/efi" =