remove tty disable, update flake, go back to beta driver, switch out sddm as it wasnt working anymore
This commit is contained in:
Christoph Hollizeck 2024-11-10 12:32:50 +01:00
parent 5c8661da2c
commit 85fddb110f
Signed by: Daholli
GPG key ID: 1763BB530F50279E
4 changed files with 47 additions and 54 deletions

View file

@ -29,7 +29,7 @@ in
listener = [
{
timeout = 900;
timeout = 600;
on-timeout = "loginctl lock-session";
}
{

View file

@ -81,11 +81,15 @@ in
};
};
services = {
xserver = enabled;
displayManager.sddm = {
enable = true;
theme = "Elegant";
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "${hyprland-package}/bin/Hyprland";
user = "cholli";
};
default_session = initial_session;
};
};
@ -311,18 +315,13 @@ in
environment.sessionVariables = {
NIXOS_OZONE_WL = "1"; # Hint electron apps to use wayland
ELECTRON_OZONE_PLATFORM_HINT = "auto";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_QPA_PLATFORM = "wayland;xcb";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
WLR_DRM_NO_ATOMIC = "1";
};
};
}

View file

@ -28,25 +28,19 @@ in
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable; # stable, beta
package = config.boot.kernelPackages.nvidiaPackages.beta; # stable, beta
};
services.xserver.videoDrivers = [ "nvidia" ];
boot.kernelParams = [
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
"nvidia_drm.fbdev=1"
# TODO: remove after https://github.com/NVIDIA/open-gpu-kernel-modules/pull/692
# and similar are merged and build in nixpkgs-unstable.
# WARNING: this disables tty output and thus hides boot logs.
"initcall_blacklist=simpledrm_platform_driver_init"
];
environment.sessionVariables = {
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
LIBVA_DRIVER_NAME = "nvidia";
__GL_GSYNC_ALLOWED = "1";
__GL_VRR_ALLOWED = "0";
NVD_BACKEND = "direct";
};
};