mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
niri (#39)
Reviewed-on: https://codeberg.org/tmayoff/.dotfiles/pulls/39 Co-authored-by: Tyler Mayoff <tyler@tylermayoff.com> Co-committed-by: Tyler Mayoff <tyler@tylermayoff.com>
This commit is contained in:
parent
1afbb8fb3b
commit
7ccdf27209
11 changed files with 818 additions and 29 deletions
|
|
@ -3,6 +3,23 @@
|
|||
|
||||
modifications = final: prev: {
|
||||
mods = {
|
||||
discord = final.stdenv.mkDerivation {
|
||||
pname = "discord-wayland";
|
||||
version = prev.discord.version;
|
||||
|
||||
buildInputs = [final.makeWrapper];
|
||||
nativeBuildInputs = [final.makeWrapper];
|
||||
|
||||
unpackPhase = "true";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
ln -s ${prev.discord}/bin/discord $out/bin/.discord-wrapped
|
||||
wrapProgram $out/bin/.discord-wrapped \
|
||||
--prefix PATH : ${final.lib.makeBinPath [final.xdg-utils final.coreutils]} \
|
||||
--add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
ln -s $out/bin/.discord-wrapped $out/bin/discord
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -12,4 +29,6 @@
|
|||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
niri = inputs.niri.overlays.niri;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue