mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop] Improve Wayland support with sudo
This commit is contained in:
parent
875e6a6c3a
commit
c08b1f4bf9
1 changed files with 6 additions and 2 deletions
|
|
@ -135,9 +135,13 @@ in {
|
|||
services.packagekit.enable = mkDefault (!generalCfg.minimal);
|
||||
security.sudo.extraConfig =
|
||||
''
|
||||
# Keep X-related variables for better GUI integration
|
||||
Defaults:root,%wheel env_keep+=XAUTHORITY
|
||||
# Keep X and Wayland related variables for better GUI integration
|
||||
Defaults:root,%wheel env_keep+=DISPLAY
|
||||
Defaults:root,%wheel env_keep+=XAUTHORITY
|
||||
|
||||
Defaults:root,%wheel env_keep+=WAYLAND_DISPLAY
|
||||
Defaults:root,%wheel env_keep+=WAYLAND_SOCKET
|
||||
Defaults:root,%wheel env_keep+=XDG_RUNTIME_DIR
|
||||
''
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue