Compare commits

...

3 Commits

Author SHA1 Message Date
Nathan McCarty 85572d38f0
Add dark messenger extension to chromium 2023-03-18 00:10:13 -04:00
Nathan McCarty 27eaaa6c82
Update flake 2023-03-17 23:39:58 -04:00
Nathan McCarty 6f84efabcc
Update discord 2023-03-16 18:31:57 -04:00
4 changed files with 33 additions and 30 deletions

View File

@ -29,11 +29,11 @@
]
},
"locked": {
"lastModified": 1678990527,
"narHash": "sha256-mbSgwu13v8X/Mqle0rBien6QHpVm7Cxka9ObpMRZSLU=",
"lastModified": 1679104561,
"narHash": "sha256-JVyv+GeyJr7Zlxjt54sjHo90KpUGSUiVs/6tUBUuvQc=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "9adcd1787f765eee44bc27d9c930c53260982c98",
"rev": "65c5d30a355533e3f0b7b6f0417270744978134e",
"type": "github"
},
"original": {
@ -50,11 +50,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1678947834,
"narHash": "sha256-2+f3NAociAJV/Ux+dVZBbeDm94VxxoX6rFIVALMF1Y0=",
"lastModified": 1679069674,
"narHash": "sha256-/azgwXXcmZ1rAJhOzokLx6XfM81fyU/5GXfOyGAocN8=",
"owner": "nix-community",
"repo": "fenix",
"rev": "65537912ff6741f88271f11a0a48c293f865dd9d",
"rev": "47ac04d42227141940ed77b4f4f1c336f99f1d99",
"type": "github"
},
"original": {
@ -177,11 +177,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1678673526,
"lastModified": 1679067101,
"narHash": "sha256-tMI1inGT9u4KWQml0w30dhWqQPlth1e9K/68sfDkEQA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "74e0b590c0c8eb99548b8db40c323ff61a2f37c4",
"rev": "9154cd519a8942728038819682d6b3ff33f321bb",
"type": "github"
},
"original": {
@ -359,11 +359,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1678397099,
"narHash": "sha256-5xq8YJe+h19TlD+EI4AE/3H3jcCcQ2AWU6CWBVc5tRc=",
"lastModified": 1679075297,
"narHash": "sha256-8TwS7NPQWW9iPejBwWzmjLnK8bQhdOMPpsj3KPAL6x8=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "556101ff85bd6e20900ec73ee525b935154bc8ea",
"rev": "994584bb26ffa1deeaf56099601ef4bcc487273e",
"type": "github"
},
"original": {
@ -374,11 +374,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1678872516,
"narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=",
"lastModified": 1678972866,
"narHash": "sha256-YV8BcNWfNVgS449B6hFYFUg4kwVIQMNehZP+FNDs1LY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8",
"rev": "cd34d6ed7ba7d5c4e44b04a53dc97edb52f2766c",
"type": "github"
},
"original": {
@ -690,11 +690,11 @@
]
},
"locked": {
"lastModified": 1678648312,
"narHash": "sha256-aY3CBNyenTUkStQhwigm30+BjXQyA8rCChGD+Z98qqE=",
"lastModified": 1679013700,
"narHash": "sha256-MOEWKOEaeQvD6ve6vZUvbZhYqdf2nLtqmvGqK+/McKQ=",
"owner": "nix-community",
"repo": "NixOS-WSL",
"rev": "c6f663e8583912059605b55c07583b6e96b5e690",
"rev": "d151883dc0d81cf4b1cffa9cf880db85c76c6040",
"type": "github"
},
"original": {

View File

@ -223,11 +223,11 @@
pname = "discord-electron";
binaryName = "DiscordCanary";
desktopName = "Discord (Wayland)";
version = "0.0.149";
version = "0.0.150";
src = pkgs.fetchurl {
url =
"https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
hash = "sha256-8DHr7adczIv9FXaxPxSfZPn+8ogWLWHRp9l0JpKhoiY=";
hash = "sha256-8huDp1u0t9/kZbeB7bPqQUw8+HQ6rIyzKYUVN02gQfo=";
};
electron = pkgs.electron_22;
};

View File

@ -16,15 +16,13 @@
++ [ pkgs.wayland ];
postFixup = (old.postFixup or "") + ''
wrapProgram $out/bin/${bin} \
--add-flags "--enable-features=UseOzonePlatform" \
--add-flags "--ozone-platform=wayland"
--add-flags "--ozone-platform-hint=auto"
'';
});
zulipWayland = pkgs.makeDesktopItem {
name = "zulip-wayland";
desktopName = "Zulip (Wayland)";
exec =
"${unstable.zulip}/bin/zulip --enable-features=UseOzonePlatform --ozone-platform=wayland";
exec = "${unstable.zulip}/bin/zulip --ozone-platform-hint=auto";
terminal = false;
icon = "zulip";
type = "Application";
@ -34,7 +32,7 @@
name = "messenger-chrome";
desktopName = "Messenger (chrome)";
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;
};
# Teams
@ -42,7 +40,7 @@
name = "teams-wayland";
desktopName = "Teams (Wayland)";
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;
};
# Cinny
@ -50,14 +48,14 @@
name = "cinny";
desktopName = "Cinny";
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;
};
messagesItem = pkgs.makeDesktopItem {
name = "messages";
desktopName = "Messages (Chromium)";
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;
};
in [
@ -74,7 +72,6 @@
# Desktop telegram client
tdesktop
# Desktop mastodon client
# TODO: Reenable when unbroken on unstable
tootle
# zulip
unstable.zulip
@ -82,11 +79,17 @@
# Cinny for pretty matrix
cinnyItem
# chromium
(enableWayland chromium "chromium")
# (enableWayland ungoogled-chromium "Chromium (Wayland)")
# Wayland workaround packages
fbChromeDesktopItem
# Messages
messagesItem
];
programs.chromium = {
enable = true;
package = pkgs.ungoogled-chromium;
extensions = [{ id = "bphagiicbkoknlhmmbiokkdobkiglpio"; }];
};
};
}

View File

@ -8,7 +8,7 @@ let
name = "iris";
desktopName = "Iris";
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;
};
in {