mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop] Fix lauching GUI apps with sudo
Keep necessary environment variables
This commit is contained in:
parent
1a7ac74017
commit
bab9dfb6c8
1 changed files with 7 additions and 0 deletions
|
|
@ -224,6 +224,13 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
services.packagekit.enable = mkDefault (!generalCfg.minimal);
|
services.packagekit.enable = mkDefault (!generalCfg.minimal);
|
||||||
|
security.sudo.extraConfig =
|
||||||
|
''
|
||||||
|
# Keep X-related variables for better GUI integration
|
||||||
|
Defaults:root,%wheel env_keep+=XAUTHORITY
|
||||||
|
Defaults:root,%wheel env_keep+=DISPLAY
|
||||||
|
''
|
||||||
|
;
|
||||||
|
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
plugins = []
|
plugins = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue