22 lines
504 B
Nix
22 lines
504 B
Nix
|
{ pkgs, 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) {
|
||
|
home.file.electron_conf = mkIf (cfg.wayland) {
|
||
|
target = ".config/electron-flags.conf";
|
||
|
text = ''
|
||
|
--enable-features=UseOzonePlatform
|
||
|
--ozone-platform=wayland
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|