diff --git a/hosts/sopp/default.nix b/hosts/sopp/default.nix index 0b7b3b4..32e0176 100644 --- a/hosts/sopp/default.nix +++ b/hosts/sopp/default.nix @@ -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"; }); }); }); diff --git a/users/pbsds/home/profiles/desktop.nix b/users/pbsds/home/profiles/desktop.nix index 5d27149..023b334 100644 --- a/users/pbsds/home/profiles/desktop.nix +++ b/users/pbsds/home/profiles/desktop.nix @@ -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 \