[discord] Fix some ozone/wayland stuff
This commit is contained in:
14
home-manager/apps/discord.nix
Normal file
14
home-manager/apps/discord.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{ lib, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
obsidian
|
||||
];
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
tray = {
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user