minor
Some checks failed
CI / formatting (push) Failing after 9m21s
CI / nix_flake_check (push) Failing after 9m21s

This commit is contained in:
Narrator 2025-12-06 13:33:22 +01:00
parent 31355b4b07
commit 6b2182dd4c
2 changed files with 28 additions and 14 deletions

View file

@ -40,7 +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"];
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.
@ -86,12 +86,12 @@
};
windowManager.i3.enable = true;
videoDrivers = [ "nvidia" ];
deviceSection = ''
BusID "PCI:1:0:0" # lspci | grep VGA → find your busid
Driver "nvidia"
'';
videoDrivers = [ "nvidia" ];
deviceSection = ''
BusID "PCI:1:0:0" # lspci | grep VGA → find your busid
Driver "nvidia"
'';
};
# Configure keymap in X11
@ -153,14 +153,27 @@ videoDrivers = [ "nvidia" ];
nerd-fonts.symbols-only
];
services.logind = {
lidSwitch = "suspend";
lidSwitch = "ignore";
lidSwitchDocked = "ignore";
lidSwitchExternalPower = "lock";
extraConfig = ''
HandlePowerKey=suspend
HandleSuspendKey=hibernate
IdleAction=ignore
HandleSuspendKey=ignore
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
SuspendKeyIgnoreInhibited=yes
LidSwitchIgnoreInhibited=yes
HandlePowerKey=poweroff
HandleSuspendKey=hibernate
'';
};
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
# firewall bc duh
networking.firewall.enable = true;
@ -232,9 +245,9 @@ videoDrivers = [ "nvidia" ];
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
};
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

@ -36,6 +36,7 @@
home.packages = with pkgs; [
grc
nix-prefetch-github
gemini-cli
gh-copilot