Skip to content

Commit

Permalink
Merge pull request #70434 from hedning/gdm-fixes
Browse files Browse the repository at this point in the history
Gdm fixes
  • Loading branch information
worldofpeace committed Oct 5, 2019
2 parents 1f91fd0 + 9be5321 commit 6673ad1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/modules/services/x11/display-managers/gdm.nix
Expand Up @@ -152,6 +152,7 @@ in
chown -R gdm:gdm /run/gdm/.config
'' + optionalString config.services.gnome3.gnome-initial-setup.enable ''
# Create stamp file for gnome-initial-setup to prevent run.
mkdir -p /run/gdm/.config
cat - > /run/gdm/.config/gnome-initial-setup-done <<- EOF
yes
EOF
Expand All @@ -165,9 +166,15 @@ in
"systemd-machined.service"
"systemd-user-sessions.service"
"getty@tty1.service"
"plymouth-quit.service"
"plymouth-start.service"
];
systemd.services.display-manager.conflicts = [
"getty@tty1.service"
"plymouth-quit.service"
];
systemd.services.display-manager.onFailure = [
"plymouth-quit.service"
];

systemd.services.display-manager.serviceConfig = {
Expand All @@ -177,6 +184,9 @@ in
BusName = "org.gnome.DisplayManager";
StandardOutput = "syslog";
StandardError = "inherit";
ExecReload = "${pkgs.coreutils}/bin/kill -SIGHUP $MAINPID";
KeyringMode = "shared";
EnvironmentFile = "-/etc/locale.conf";
};

systemd.services.display-manager.path = [ pkgs.gnome3.gnome-session ];
Expand Down

0 comments on commit 6673ad1

Please sign in to comment.