2022-04-27 00:21:19 +02:00
|
|
|
{ pkgs
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, ...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.programs.electron;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2021-11-23 12:09:24 +01:00
|
|
|
options.eboskma.programs.electron = {
|
|
|
|
enable = mkEnableOption "activate electron settings";
|
|
|
|
wayland = mkEnableOption "set Wayland compatibility settings";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) {
|
2021-12-06 09:58:39 +01:00
|
|
|
xdg.configFile.electron_conf = mkIf (cfg.wayland) {
|
|
|
|
target = "electron-flags.conf";
|
2021-11-23 12:09:24 +01:00
|
|
|
text = ''
|
|
|
|
--enable-features=UseOzonePlatform
|
|
|
|
--ozone-platform=wayland
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|