nixcfg/modules/nixos/desktop/addons/electron-support/default.nix
2024-01-11 10:31:04 +00:00

20 lines
497 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.desktop.addons.electron-support;
in
{
options.plusultra.desktop.addons.electron-support = with types; {
enable = mkBoolOpt false
"Whether to enable electron support in the desktop environment.";
};
config = mkIf cfg.enable {
plusultra.home.configFile."electron-flags.conf".source =
./electron-flags.conf;
environment.sessionVariables = { NIXOS_OZONE_WL = "1"; };
};
}