nixos-config/home-manager/modules/electron/default.nix

22 lines
491 B
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{ config, lib, ... }:
with lib;
let
2022-03-01 22:19:03 +01:00
cfg = config.eboskma.programs.electron;
in
{
options.eboskma.programs.electron = {
enable = mkEnableOption "activate electron settings";
wayland = mkEnableOption "set Wayland compatibility settings";
};
2022-05-03 18:17:38 +02:00
config = mkIf cfg.enable {
xdg.configFile.electron_conf = mkIf cfg.wayland {
2021-12-06 09:58:39 +01:00
target = "electron-flags.conf";
text = ''
--enable-features=UseOzonePlatform
--ozone-platform=wayland
'';
};
};
}