xwayland-satellite: fix variable for user environment
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
31d52c2e6a
commit
47e98fda70
1 changed files with 11 additions and 2 deletions
|
@ -9,7 +9,10 @@ with lib; let
|
|||
|
||||
cfg = config.custom.services.xwayland-satellite;
|
||||
in {
|
||||
options.custom.services.xwayland-satellite.enable = mkOption {default = false;};
|
||||
options.custom.services.xwayland-satellite = {
|
||||
enable = mkOption {default = false;};
|
||||
display = mkOption {default = ":${toString config.services.xserver.display}";};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# HACK: Use official module if added
|
||||
|
@ -41,7 +44,13 @@ in {
|
|||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
DISPLAY = ":0"; # Assume first display
|
||||
DISPLAY = cfg.display;
|
||||
};
|
||||
|
||||
home-manager.users.${config.custom.username} = {
|
||||
home.sessionVariables = {
|
||||
DISPLAY = cfg.display;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue