[discord] Fix some ozone/wayland stuff

This commit is contained in:
2025-04-09 18:02:52 -07:00
parent 0b013f215e
commit b0852ad15a
6 changed files with 31 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
discord
];
xdg.desktopEntries = {
discord = {
name = "Discord";
# Custom options to reduce flickering under wayland.
exec = "discord --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu";
};
};
}

View File

@@ -44,6 +44,9 @@
# For window theming
"QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps"
"GTK_THEME,Adwaita-dark"
# Tell electron apps they should use OZone for Wayland
"ELECTRON_OZONE_PLATFORM_HINT,auto"
];
general = {

View File

@@ -6,10 +6,16 @@
./nix.nix
./rofi/rofi.nix
../apps/element.nix
../apps/discord.nix
./terminal.nix
];
home.packages = with pkgs; [
# Desktop Applications
signal-desktop
firefox
# Common utilities
feh
networkmanagerapplet # network control
hyprlock # lock screen
@@ -34,7 +40,7 @@
# Hint for electron apps to use wayland
home.sessionVariables.NIXOS_OZONE_WL = "1";
# Micelaneious config files
# Miscelaneous config files
home.file = {
".XCompose".source = ./config/XCompose;
};

View File

@@ -1,5 +1,9 @@
{ lib, ... }:
{ lib, pkgs, ... }:
{
home.packages = with pkgs; [
obsidian
];
services.syncthing = {
enable = true;
tray = {