enable ozone for a few electron apps

- obsidian
- vesktop
had to manually recreate the shortcuts with --disable-gpu

nvidia fuck you
This commit is contained in:
NullBite 2024-03-23 13:53:19 -04:00
parent 0118432753
commit 38bed5d6d8
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 11 additions and 2 deletions

View File

@ -14,8 +14,7 @@ in
xdg.desktopEntries.vesktop = lib.mkIf config.nixfiles.meta.graphical {
categories= ["Network" "InstantMessaging" "Chat"];
# exec="env NIXOS_OZONE_WL=1 vesktop %U";
exec="vesktop %U";
exec="env NIXOS_OZONE_WL=1 vesktop --disable-gpu %U";
genericName="Internet Messenger";
icon="vesktop";
name="Vesktop";

View File

@ -11,6 +11,16 @@ in
] ++ [
pandoc
];
xdg.desktopEntries.obsidian = lib.mkIf config.nixfiles.meta.graphical {
categories = [ "Office" ];
comment = "Knowledge base";
exec = "env NIXOS_OZONE_WL=1 obsidian --disable-gpu %u";
icon = "obsidian";
mimeType = [ "x-scheme-handler/obsidian" ];
name = "Obsidian";
type = "Application";
};
};
options.nixfiles.packageSets.productivity.enable = lib.mkEnableOption "the productivity package set";