Add dark messenger extension to chromium
This commit is contained in:
parent
27eaaa6c82
commit
85572d38f0
|
@ -16,15 +16,13 @@
|
||||||
++ [ pkgs.wayland ];
|
++ [ pkgs.wayland ];
|
||||||
postFixup = (old.postFixup or "") + ''
|
postFixup = (old.postFixup or "") + ''
|
||||||
wrapProgram $out/bin/${bin} \
|
wrapProgram $out/bin/${bin} \
|
||||||
--add-flags "--enable-features=UseOzonePlatform" \
|
--add-flags "--ozone-platform-hint=auto"
|
||||||
--add-flags "--ozone-platform=wayland"
|
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
zulipWayland = pkgs.makeDesktopItem {
|
zulipWayland = pkgs.makeDesktopItem {
|
||||||
name = "zulip-wayland";
|
name = "zulip-wayland";
|
||||||
desktopName = "Zulip (Wayland)";
|
desktopName = "Zulip (Wayland)";
|
||||||
exec =
|
exec = "${unstable.zulip}/bin/zulip --ozone-platform-hint=auto";
|
||||||
"${unstable.zulip}/bin/zulip --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
|
||||||
terminal = false;
|
terminal = false;
|
||||||
icon = "zulip";
|
icon = "zulip";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
|
@ -34,7 +32,7 @@
|
||||||
name = "messenger-chrome";
|
name = "messenger-chrome";
|
||||||
desktopName = "Messenger (chrome)";
|
desktopName = "Messenger (chrome)";
|
||||||
exec = ''
|
exec = ''
|
||||||
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=https://messenger.com"'';
|
${pkgs.ungoogled-chromium}/bin/chromium "--app=https://messenger.com"'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
# Teams
|
# Teams
|
||||||
|
@ -42,7 +40,7 @@
|
||||||
name = "teams-wayland";
|
name = "teams-wayland";
|
||||||
desktopName = "Teams (Wayland)";
|
desktopName = "Teams (Wayland)";
|
||||||
exec = ''
|
exec = ''
|
||||||
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=https://teams.microsoft.com"'';
|
${pkgs.ungoogled-chromium}/bin/chromium "--app=https://teams.microsoft.com"'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
# Cinny
|
# Cinny
|
||||||
|
@ -50,14 +48,14 @@
|
||||||
name = "cinny";
|
name = "cinny";
|
||||||
desktopName = "Cinny";
|
desktopName = "Cinny";
|
||||||
exec = ''
|
exec = ''
|
||||||
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=https://app.cinny.in"'';
|
${pkgs.ungoogled-chromium}/bin/chromium "--app=https://app.cinny.in"'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
messagesItem = pkgs.makeDesktopItem {
|
messagesItem = pkgs.makeDesktopItem {
|
||||||
name = "messages";
|
name = "messages";
|
||||||
desktopName = "Messages (Chromium)";
|
desktopName = "Messages (Chromium)";
|
||||||
exec = ''
|
exec = ''
|
||||||
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=https://messages.google.com/web"'';
|
${pkgs.ungoogled-chromium}/bin/chromium "--app=https://messages.google.com/web"'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
|
@ -74,7 +72,6 @@
|
||||||
# Desktop telegram client
|
# Desktop telegram client
|
||||||
tdesktop
|
tdesktop
|
||||||
# Desktop mastodon client
|
# Desktop mastodon client
|
||||||
# TODO: Reenable when unbroken on unstable
|
|
||||||
tootle
|
tootle
|
||||||
# zulip
|
# zulip
|
||||||
unstable.zulip
|
unstable.zulip
|
||||||
|
@ -82,11 +79,17 @@
|
||||||
# Cinny for pretty matrix
|
# Cinny for pretty matrix
|
||||||
cinnyItem
|
cinnyItem
|
||||||
# chromium
|
# chromium
|
||||||
(enableWayland chromium "chromium")
|
# (enableWayland ungoogled-chromium "Chromium (Wayland)")
|
||||||
# Wayland workaround packages
|
# Wayland workaround packages
|
||||||
fbChromeDesktopItem
|
fbChromeDesktopItem
|
||||||
# Messages
|
# Messages
|
||||||
messagesItem
|
messagesItem
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ungoogled-chromium;
|
||||||
|
extensions = [{ id = "bphagiicbkoknlhmmbiokkdobkiglpio"; }];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ let
|
||||||
name = "iris";
|
name = "iris";
|
||||||
desktopName = "Iris";
|
desktopName = "Iris";
|
||||||
exec = ''
|
exec = ''
|
||||||
${pkgs.chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=http://localhost:6680/iris/"'';
|
${pkgs.ungoogled-chromium}/bin/chromium --enable-features=UseOzonePlatform -ozone-platform=wayland "--app=http://localhost:6680/iris/"'';
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue