switch to native spotify, fix discord on cuda-wayland
This commit is contained in:
parent
1b052f57af
commit
552fc00f87
@ -119,9 +119,18 @@
|
||||
|
||||
# nvidia bad
|
||||
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: {
|
||||
desktopItem = old.desktopItem.override (old: {
|
||||
exec = "element-desktop --in-process-gpu --disable-gpu %u";
|
||||
exec = "element-desktop --disable-gpu --in-process-gpu %u";
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -2,6 +2,12 @@
|
||||
|
||||
{
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"discord"
|
||||
"telegra-desktop"
|
||||
"spotify"
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
atom # TODO: config
|
||||
pulsar # TODO: config, transition into this
|
||||
@ -20,7 +26,7 @@
|
||||
];
|
||||
|
||||
# flatpak
|
||||
|
||||
# TODO: this requires a logout+login to take effect
|
||||
home.activation.addFlathubRemote = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if command -v flatpak >/dev/null; then
|
||||
$DRY_RUN_CMD \
|
||||
|
Loading…
Reference in New Issue
Block a user