Update gdm-monitor.nix

This commit is contained in:
ediblerope 2026-01-11 22:58:20 +00:00 committed by GitHub
parent 98e2a287a0
commit 5a50ea7709
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@
{ {
# Copy monitors.xml to GDM's config directory to prevent display mode changes during login # Copy monitors.xml to GDM's config directory to prevent display mode changes during login
# This eliminates the black screen/signal loss when transitioning from GDM to user session # This eliminates the black screen/signal loss when transitioning from GDM to user session
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
environment.etc."gdm-monitors.xml" = { environment.etc."gdm-monitors.xml" = {
source = pkgs.writeText "monitors.xml" '' source = pkgs.writeText "monitors.xml" ''
<monitors version="2"> <monitors version="2">
@ -40,4 +40,5 @@
"d /var/lib/gdm/.config 0711 gdm gdm" "d /var/lib/gdm/.config 0711 gdm gdm"
"L+ /var/lib/gdm/.config/monitors.xml - - - - /etc/gdm-monitors.xml" "L+ /var/lib/gdm/.config/monitors.xml - - - - /etc/gdm-monitors.xml"
]; ];
};
} }