nixos/gdm: make config dir for gnome-initial-setup

Observed failure to lauch gdm in a VM due to missing /run/gdm.config.
This commit is contained in:
Tor Hedin Brønner 2019-10-04 22:34:18 +02:00
parent 1f91fd0a03
commit 1efac91ca4

View File

@ -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