[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 = {

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
let
monitors = [
"DP-1"
@@ -29,14 +29,6 @@ in
userEmail = "drew.haven@gmail.com";
};
home.packages = with pkgs; [
# Applications
discord
signal-desktop
obsidian
firefox
];
# Set up eww here because it's based on the monitor configuration
# Eww is idempotent, so it's fine to just run it on every reload to make sure things are open
wayland.windowManager.hyprland.settings.execr-once = [

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
{
imports = map (x: ../../../home-manager + x) [
"/features/development/development.nix"
@@ -20,14 +20,6 @@
userEmail = "periodic@blazestar.net";
};
home.packages = with pkgs; [
# Applications
discord
signal-desktop
obsidian
firefox
];
# Set up eww here because it's based on the monitor configuration
# Eww is idempotent, so it's fine to just run it on every reload to make sure things are open
wayland.windowManager.hyprland.settings.execr-once = [