summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/lightdm.nix
diff options
context:
space:
mode:
authorWORLDofPEACE <worldofpeace@protonmail.ch>2020-10-24 11:28:18 -0400
committerWORLDofPEACE <worldofpeace@protonmail.ch>2020-10-24 11:28:18 -0400
commitc134f6443a6a595b665f749fb79df8cd2519c029 (patch)
treedfaf54a36af8cc2540af8a5c03ed4060e22152a6 /nixos/modules/services/x11/display-managers/lightdm.nix
parent007126eef72271480cb7670e19e501a1ad2c1ff2 (diff)
downloadnixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar.gz
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar.bz2
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar.lz
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar.xz
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.tar.zst
nixpkgs-c134f6443a6a595b665f749fb79df8cd2519c029.zip
nixos/lightdm: make lightdm user shell bash
In https://github.com/NixOS/nixpkgs/issues/100119 pantheon's greeter
has g-s-d running which allows brightness controls via pkexec.
This is changed in newer versions of g-s-d (pantheon uses a fork currently),
but whenever brightness is changed with a shell of `shadow` we get
```
Oct 10 23:51:44 kirXps pkexec[18722]: lightdm: Executing command [USER=root] [TTY=unknown] [CWD=/var/lib/lightdm] [COMMAND=/run/current-system/sw/bin/elementary-settings-daemon/gsd-backlight-helper /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight 65587]
```

I'm not sure this should be strictly needed, so we should try to
revert later on when pantheon's g-s-d is updated.
Diffstat (limited to 'nixos/modules/services/x11/display-managers/lightdm.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/lightdm.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix
index 143785db0b4..2dafee9e36e 100644
--- a/nixos/modules/services/x11/display-managers/lightdm.nix
+++ b/nixos/modules/services/x11/display-managers/lightdm.nix
@@ -308,6 +308,7 @@ in
       home = "/var/lib/lightdm";
       group = "lightdm";
       uid = config.ids.uids.lightdm;
+      shell = pkgs.bash;
     };
 
     systemd.tmpfiles.rules = [