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";
};
caelestia-shell = {
url = "github:caelestia-dots/shell";
url = "github:jutraim/niri-caelestia-shell";
};
darwin = {

View file

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

View file

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

View file

@ -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
'';
};
};
};