Skip to content

Commit

Permalink
nixos: include system-level dconf resources in GDM's profile
Browse files Browse the repository at this point in the history
This is necessary when system-wide dconf settings must be configured, i.e. to
disable GDM's auto-suspending of the machine when no user is logged in.

Related to #42053.
  • Loading branch information
peti committed Oct 2, 2018
1 parent aeee761 commit 1af8f3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/x11/display-managers/gdm.nix
Expand Up @@ -142,7 +142,10 @@ in

systemd.user.services.dbus.wantedBy = [ "default.target" ];

programs.dconf.profiles.gdm = "${gdm}/share/dconf/profile/gdm";
programs.dconf.profiles.gdm = pkgs.writeText "dconf-gdm-profile" ''
system-db:local
${gdm}/share/dconf/profile/gdm
'';

# Use AutomaticLogin if delay is zero, because it's immediate.
# Otherwise with TimedLogin with zero seconds the prompt is still
Expand Down

0 comments on commit 1af8f3a

Please sign in to comment.