kdeconnect: move display workaround to console profile
This commit is contained in:
parent
1d134b5b10
commit
fcd3fd6084
2 changed files with 11 additions and 10 deletions
|
@ -9,7 +9,6 @@ with lib; let
|
||||||
in {
|
in {
|
||||||
options.custom.services.kdeconnect = {
|
options.custom.services.kdeconnect = {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
display = mkOption {default = null;};
|
|
||||||
package = mkOption {default = mkForce pkgs.kdePackages.kdeconnect-kde;};
|
package = mkOption {default = mkForce pkgs.kdePackages.kdeconnect-kde;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,13 +25,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
};
|
};
|
||||||
|
|
||||||
# HACK: Manually set DISPLAY variable if specified
|
|
||||||
systemd.user.services.kdeconnect = mkIf (!isNull cfg.display) {
|
|
||||||
Service = {
|
|
||||||
Environment = ["DISPLAY=:${toString cfg.display}"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
kdeconnect.display = 0;
|
|
||||||
|
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
folders =
|
folders =
|
||||||
|
@ -86,4 +84,15 @@
|
||||||
|
|
||||||
decky-loader.enable = true;
|
decky-loader.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
{
|
||||||
|
# HACK: Manually set DISPLAY variable for use in gamemode
|
||||||
|
systemd.user.services.kdeconnect = {
|
||||||
|
Service = {
|
||||||
|
Environment = ["DISPLAY=:${toString config.xserver.display}"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue