1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
47e98fda70
xwayland-satellite: fix variable for user environment
Signed-off-by: Myned <dev@bjork.tech>
2024-12-24 10:25:31 -05:00
31d52c2e6a
chore: fix formatting
Signed-off-by: Myned <dev@bjork.tech>
2024-12-24 10:24:32 -05:00
2 changed files with 14 additions and 3 deletions

View file

@ -26,7 +26,9 @@ in {
# HACK: Inherit home-manager environment variables in lieu of upstream fix
# https://github.com/nix-community/home-manager/issues/2659
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#environment
environment = mapAttrs (name: value: builtins.toString value) config.home-manager.users.${config.custom.username}.home.sessionVariables;
environment =
mapAttrs (name: value: toString value)
config.home-manager.users.${config.custom.username}.home.sessionVariables;
cursor = {
hide-after-inactive-ms = 1000 * 15; # Milliseconds

View file

@ -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;
};
};
};
}