nixcfg/modules/nixos/desktop/addons/electron-support/default.nix

20 lines
497 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ 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"; };
};
}