[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
|
# For window theming
|
||||||
"QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps"
|
"QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps"
|
||||||
"GTK_THEME,Adwaita-dark"
|
"GTK_THEME,Adwaita-dark"
|
||||||
|
|
||||||
|
# Tell electron apps they should use OZone for Wayland
|
||||||
|
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
||||||
];
|
];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
|
|||||||
@@ -6,10 +6,16 @@
|
|||||||
./nix.nix
|
./nix.nix
|
||||||
./rofi/rofi.nix
|
./rofi/rofi.nix
|
||||||
../apps/element.nix
|
../apps/element.nix
|
||||||
|
../apps/discord.nix
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
# Desktop Applications
|
||||||
|
signal-desktop
|
||||||
|
firefox
|
||||||
|
|
||||||
|
# Common utilities
|
||||||
feh
|
feh
|
||||||
networkmanagerapplet # network control
|
networkmanagerapplet # network control
|
||||||
hyprlock # lock screen
|
hyprlock # lock screen
|
||||||
@@ -34,7 +40,7 @@
|
|||||||
# Hint for electron apps to use wayland
|
# Hint for electron apps to use wayland
|
||||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
# Micelaneious config files
|
# Miscelaneous config files
|
||||||
home.file = {
|
home.file = {
|
||||||
".XCompose".source = ./config/XCompose;
|
".XCompose".source = ./config/XCompose;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ lib, ... }:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
obsidian
|
||||||
|
];
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
tray = {
|
tray = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
monitors = [
|
monitors = [
|
||||||
"DP-1"
|
"DP-1"
|
||||||
@@ -29,14 +29,6 @@ in
|
|||||||
userEmail = "drew.haven@gmail.com";
|
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
|
# 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
|
# 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 = [
|
wayland.windowManager.hyprland.settings.execr-once = [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = map (x: ../../../home-manager + x) [
|
imports = map (x: ../../../home-manager + x) [
|
||||||
"/features/development/development.nix"
|
"/features/development/development.nix"
|
||||||
@@ -20,14 +20,6 @@
|
|||||||
userEmail = "periodic@blazestar.net";
|
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
|
# 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
|
# 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 = [
|
wayland.windowManager.hyprland.settings.execr-once = [
|
||||||
|
|||||||
Reference in New Issue
Block a user