Compare commits
2 commits
7d2190a8f0
...
47e98fda70
Author | SHA1 | Date | |
---|---|---|---|
47e98fda70 | |||
31d52c2e6a |
2 changed files with 14 additions and 3 deletions
|
@ -26,7 +26,9 @@ in {
|
||||||
# HACK: Inherit home-manager environment variables in lieu of upstream fix
|
# HACK: Inherit home-manager environment variables in lieu of upstream fix
|
||||||
# https://github.com/nix-community/home-manager/issues/2659
|
# https://github.com/nix-community/home-manager/issues/2659
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#environment
|
# 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 = {
|
cursor = {
|
||||||
hide-after-inactive-ms = 1000 * 15; # Milliseconds
|
hide-after-inactive-ms = 1000 * 15; # Milliseconds
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue