1
1
Fork 0

xwayland-satellite: fix variable for user environment

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-24 10:25:31 -05:00
parent 31d52c2e6a
commit 47e98fda70
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -9,7 +9,10 @@ with lib; let
cfg = config.custom.services.xwayland-satellite; cfg = config.custom.services.xwayland-satellite;
in { 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 { config = mkIf cfg.enable {
# HACK: Use official module if added # HACK: Use official module if added
@ -41,7 +44,13 @@ in {
}; };
environment.sessionVariables = { environment.sessionVariables = {
DISPLAY = ":0"; # Assume first display DISPLAY = cfg.display;
};
home-manager.users.${config.custom.username} = {
home.sessionVariables = {
DISPLAY = cfg.display;
};
}; };
}; };
} }