nixos-config/home-manager/modules/electron/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

21 lines
491 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.eboskma.programs.electron;
in
{
options.eboskma.programs.electron = {
enable = mkEnableOption "activate electron settings";
wayland = mkEnableOption "set Wayland compatibility settings";
};
config = mkIf cfg.enable {
xdg.configFile.electron_conf = mkIf cfg.wayland {
target = "electron-flags.conf";
text = ''
--enable-features=UseOzonePlatform
--ozone-platform=wayland
'';
};
};
}