diff options
author | Peter Simons <simons@cryp.to> | 2018-10-02 12:41:25 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2018-10-02 13:27:59 +0200 |
commit | 1af8f3a980bb8ac92f5c09ac23cca4781571bcd1 (patch) | |
tree | c8807c28b7d085776ae2ff01079c026b02c52684 /nixos | |
parent | aeee761abaf1cb44fa73156ceea7a4e9598a1b17 (diff) | |
download | nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar.gz nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar.bz2 nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar.lz nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar.xz nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.tar.zst nixlib-1af8f3a980bb8ac92f5c09ac23cca4781571bcd1.zip |
nixos: include system-level dconf resources in GDM's profile
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 https://github.com/NixOS/nixpkgs/issues/42053.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/display-managers/gdm.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/gdm.nix b/nixos/modules/services/x11/display-managers/gdm.nix index a775dd0f0e04..a16cbee3bb39 100644 --- a/nixos/modules/services/x11/display-managers/gdm.nix +++ b/nixos/modules/services/x11/display-managers/gdm.nix @@ -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 |