switch to native spotify, fix discord on cuda-wayland

This commit is contained in:
Peder Bergebakken Sundt 2023-06-26 23:11:42 +02:00
parent 1b052f57af
commit 552fc00f87
2 changed files with 17 additions and 2 deletions

View File

@ -119,9 +119,18 @@
# nvidia bad # nvidia bad
nixpkgs.config.packageOverrides = (pkgs: { nixpkgs.config.packageOverrides = (pkgs: {
discord = pkgs.discord.overrideAttrs (old: rec {
desktopItem = old.desktopItem.override (old': {
#exec = "${pkgs.coreutils}/bin/env NIXOS_OZONE_WL=1 ${old'.exec}";
exec = "${pkgs.coreutils-full}/bin/env NIXOS_OZONE_WL=1 Discord";
});
postInstall = ''
ln -sf "${desktopItem}/share/applications" $out/share/
'' + old.postInstall;
});
element-desktop = pkgs.element-desktop.overrideAttrs (old: { element-desktop = pkgs.element-desktop.overrideAttrs (old: {
desktopItem = old.desktopItem.override (old: { desktopItem = old.desktopItem.override (old: {
exec = "element-desktop --in-process-gpu --disable-gpu %u"; exec = "element-desktop --disable-gpu --in-process-gpu %u";
}); });
}); });
}); });

View File

@ -2,6 +2,12 @@
{ {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"discord"
"telegra-desktop"
"spotify"
];
home.packages = with pkgs; [ home.packages = with pkgs; [
atom # TODO: config atom # TODO: config
pulsar # TODO: config, transition into this pulsar # TODO: config, transition into this
@ -20,7 +26,7 @@
]; ];
# flatpak # flatpak
# TODO: this requires a logout+login to take effect
home.activation.addFlathubRemote = lib.hm.dag.entryAfter ["writeBoundary"] '' home.activation.addFlathubRemote = lib.hm.dag.entryAfter ["writeBoundary"] ''
if command -v flatpak >/dev/null; then if command -v flatpak >/dev/null; then
$DRY_RUN_CMD \ $DRY_RUN_CMD \