This commit is contained in:
Harald Hoyer 2024-01-11 10:26:46 +00:00
parent 66c05f9093
commit 45d6f4b0f3
205 changed files with 9040 additions and 342 deletions

View file

@ -0,0 +1,19 @@
{ 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"; };
};
}

View file

@ -0,0 +1,2 @@
--enable-features=UseOzonePlatform
--ozone-platform=wayland