niri with shell, wrapped discord attempt

This commit is contained in:
Tyler Mayoff 2025-08-31 11:39:09 -04:00
parent 282bb68316
commit 227dcc58d9
4 changed files with 31 additions and 14 deletions

View file

@ -13,7 +13,7 @@
url = "github:sodiboo/niri-flake"; url = "github:sodiboo/niri-flake";
}; };
caelestia-shell = { caelestia-shell = {
url = "github:caelestia-dots/shell"; url = "github:jutraim/niri-caelestia-shell";
}; };
darwin = { darwin = {

View file

@ -6,7 +6,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
adw-gtk3 adw-gtk3
discord pkgs.mods.discord
# Office # Office
libreoffice libreoffice

View file

@ -13,19 +13,19 @@
programs.caelestia = { programs.caelestia = {
enable = true; enable = true;
settings = { # settings = {
bar.status = { # bar.status = {
showBattery = true; # showBattery = true;
}; # };
appearance.transparency.enable = true; # # appearance.transparency.enable = true;
}; # };
cli = { # cli = {
enable = true; # Also add caelestia-cli to path # enable = true; # Also add caelestia-cli to path
settings = { # settings = {
theme.enableGtk = true; # theme.enableGtk = true;
}; # };
}; # };
}; };
programs.niri.settings = { programs.niri.settings = {

View file

@ -3,6 +3,23 @@
modifications = final: prev: { modifications = final: prev: {
mods = { 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
'';
};
}; };
}; };