Added ozone flags to every electron and chromium application
This commit is contained in:
@@ -2,7 +2,25 @@
|
|||||||
programs = {
|
programs = {
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ungoogled-chromium;
|
package =
|
||||||
|
pkgs.symlinkJoin
|
||||||
|
{
|
||||||
|
name = pkgs.ungoogled-chromium.name;
|
||||||
|
paths = [pkgs.ungoogled-chromium];
|
||||||
|
buildInputs = [pkgs.ungoogled-chromium pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/chromium \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform" \
|
||||||
|
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||||
|
--add-flags "--ozone-platform=wayland" \
|
||||||
|
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pname = pkgs.ungoogled-chromium.pname;
|
||||||
|
version = pkgs.ungoogled-chromium.version;
|
||||||
|
meta = pkgs.ungoogled-chromium.meta;
|
||||||
|
override = pkgs.ungoogled-chromium.override;
|
||||||
|
};
|
||||||
commandLineArgs = ["--enable-features=TouchpadOverscrollHistoryNavigation"];
|
commandLineArgs = ["--enable-features=TouchpadOverscrollHistoryNavigation"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,42 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Work-specific programs
|
# Work-specific programs
|
||||||
teams-for-linux
|
(pkgs.symlinkJoin
|
||||||
|
{
|
||||||
|
name = pkgs.teams-for-linux.name;
|
||||||
|
paths = [pkgs.teams-for-linux];
|
||||||
|
buildInputs = [pkgs.teams-for-linux pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/teams-for-linux \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform" \
|
||||||
|
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||||
|
--add-flags "--ozone-platform=wayland" \
|
||||||
|
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pname = pkgs.teams-for-linux.pname;
|
||||||
|
version = pkgs.teams-for-linux.version;
|
||||||
|
meta = pkgs.teams-for-linux.meta;
|
||||||
|
})
|
||||||
|
|
||||||
# Coding tools
|
# Coding tools
|
||||||
hoppscotch
|
(pkgs.symlinkJoin
|
||||||
|
{
|
||||||
|
name = pkgs.hoppscotch.name;
|
||||||
|
paths = [pkgs.hoppscotch];
|
||||||
|
buildInputs = [pkgs.hoppscotch pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/hoppscotch \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform" \
|
||||||
|
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||||
|
--add-flags "--ozone-platform=wayland" \
|
||||||
|
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pname = pkgs.hoppscotch.pname;
|
||||||
|
version = pkgs.hoppscotch.version;
|
||||||
|
meta = pkgs.hoppscotch.meta;
|
||||||
|
})
|
||||||
zed-editor
|
zed-editor
|
||||||
|
|
||||||
# Creative tools
|
# Creative tools
|
||||||
@@ -14,7 +46,23 @@
|
|||||||
davinci-resolve
|
davinci-resolve
|
||||||
|
|
||||||
# Productivity tools
|
# Productivity tools
|
||||||
bitwarden-desktop
|
(pkgs.symlinkJoin
|
||||||
|
{
|
||||||
|
name = pkgs.bitwarden-desktop.name;
|
||||||
|
paths = [pkgs.bitwarden-desktop];
|
||||||
|
buildInputs = [pkgs.bitwarden-desktop pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/bitwarden \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform" \
|
||||||
|
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||||
|
--add-flags "--ozone-platform=wayland" \
|
||||||
|
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pname = pkgs.bitwarden-desktop.pname;
|
||||||
|
version = pkgs.bitwarden-desktop.version;
|
||||||
|
meta = pkgs.bitwarden-desktop.meta;
|
||||||
|
})
|
||||||
libreoffice-qt
|
libreoffice-qt
|
||||||
hunspell
|
hunspell
|
||||||
hunspellDicts.en_CA
|
hunspellDicts.en_CA
|
||||||
@@ -23,7 +71,23 @@
|
|||||||
gparted
|
gparted
|
||||||
|
|
||||||
# Communication tools
|
# Communication tools
|
||||||
discord
|
(pkgs.symlinkJoin
|
||||||
|
{
|
||||||
|
name = pkgs.discord.name;
|
||||||
|
paths = [pkgs.discord];
|
||||||
|
buildInputs = [pkgs.discord pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/discord \
|
||||||
|
--add-flags "--enable-features=UseOzonePlatform" \
|
||||||
|
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||||
|
--add-flags "--ozone-platform=wayland" \
|
||||||
|
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pname = pkgs.discord.pname;
|
||||||
|
version = pkgs.discord.version;
|
||||||
|
meta = pkgs.discord.meta;
|
||||||
|
})
|
||||||
|
|
||||||
# Games
|
# Games
|
||||||
atlauncher
|
atlauncher
|
||||||
|
|||||||
Reference in New Issue
Block a user