switch to normal discord, fixes flickering on wayland
This commit is contained in:
@@ -362,7 +362,7 @@ exec --no-startup-id sleep 5 && nvidia-settings -a "[gpu:0]/GPUGraphicsClockOffs
|
|||||||
#exec --no-startup-id sleep 2 && xfce4-terminal
|
#exec --no-startup-id sleep 2 && xfce4-terminal
|
||||||
#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md
|
#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md
|
||||||
#exec --no-startup-id sleep 3 && thunar
|
#exec --no-startup-id sleep 3 && thunar
|
||||||
exec --no-startup-id i3-msg workspace $ws9; exec discordcanary
|
exec --no-startup-id i3-msg workspace $ws9; exec discord
|
||||||
exec --no-startup-id i3-msg workspace $ws10; exec firefox
|
exec --no-startup-id i3-msg workspace $ws10; exec firefox
|
||||||
|
|
||||||
###############
|
###############
|
||||||
|
|||||||
@@ -286,11 +286,13 @@ in {
|
|||||||
"${pkgs.hyprshade}/bin/hyprshade auto"
|
"${pkgs.hyprshade}/bin/hyprshade auto"
|
||||||
"dex --autostart --environment Hyprland"
|
"dex --autostart --environment Hyprland"
|
||||||
"${pkgs.hypridle}/bin/hypridle &"
|
"${pkgs.hypridle}/bin/hypridle &"
|
||||||
"sleep 3 && ${pkgs.waybar}/bin/waybar &"
|
|
||||||
#"${pkgs.dunst}/bin/dunst &"
|
#"${pkgs.dunst}/bin/dunst &"
|
||||||
] ++ lib.lists.optionals (osConfig.networking.hostName == "kop-pc") [
|
] ++ lib.lists.optionals (osConfig.networking.hostName == "kop-pc") [
|
||||||
|
"[workspace 9 silent] discord"
|
||||||
"[workspace 9 silent] discordcanary"
|
"[workspace 9 silent] discordcanary"
|
||||||
"[workspace 10 silent] firefox"
|
"[workspace 10 silent] firefox"
|
||||||
|
] ++ [
|
||||||
|
"sleep 3 && ${pkgs.waybar}/bin/waybar &"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
extraConfig = let
|
extraConfig = let
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
servers = {
|
servers = {
|
||||||
bashls.enable = true;
|
bashls.enable = true;
|
||||||
|
#ccls.enable = true;
|
||||||
clangd.enable = true;
|
clangd.enable = true;
|
||||||
cssls.enable = true;
|
cssls.enable = true;
|
||||||
gopls.enable = true;
|
gopls.enable = true;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ in {
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
keepassxc
|
keepassxc
|
||||||
discord-canary
|
discord
|
||||||
gvfs
|
gvfs
|
||||||
remmina
|
remmina
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ in {
|
|||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
nvidia_oc = "${pkgs.nvidia_oc}/bin/nvidia_oc";
|
||||||
in lib.mkIf cfg.enable (lib.recursiveUpdate nvidiaOption {
|
in lib.mkIf cfg.enable (lib.recursiveUpdate nvidiaOption {
|
||||||
boot.kernelParams =
|
boot.kernelParams =
|
||||||
[ "nvidia-drm.fbdev=1" "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];
|
[ "nvidia-drm.fbdev=1" "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];
|
||||||
@@ -109,26 +110,12 @@ in {
|
|||||||
systemd.services.nvidiaSetClocks = lib.mkIf cfg.clock.enable {
|
systemd.services.nvidiaSetClocks = lib.mkIf cfg.clock.enable {
|
||||||
description = "Set GPU clocks";
|
description = "Set GPU clocks";
|
||||||
script =
|
script =
|
||||||
"/run/current-system/sw/bin/nvidia-smi -pm 1 && /run/current-system/sw/bin/nvidia-smi -i 0 -lgc ${
|
"${nvidia_oc} set -i 0 --min-clock ${toString cfg.clock.min} --max-clock ${
|
||||||
toString cfg.clock.min
|
toString cfg.clock.max
|
||||||
},${toString cfg.clock.max}";
|
} --freq-offset ${toString cfg.clock.offset}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "display-manager.service" ];
|
after = [ "network.target" ];
|
||||||
requires = [ "display-manager.service" ];
|
|
||||||
environment.DISPLAY = ":0";
|
|
||||||
environment.XAUTHORITY = "/home/kopatz/.Xauthority";
|
|
||||||
};
|
};
|
||||||
# doesn't work
|
|
||||||
#systemd.user.services.nvidiaSetOffset = lib.mkIf cfg.clock.enable {
|
|
||||||
# description = "Sets gpu offset";
|
|
||||||
# enable = true;
|
|
||||||
# serviceConfig = { Type = "oneshot"; };
|
|
||||||
# script = ''
|
|
||||||
# ${config.hardware.nvidia.package.settings}/bin/nvidia-settings -a "[gpu:0]/GPUGraphicsClockOffsetAllPerformanceLevels=${
|
|
||||||
# toString cfg.clock.offset
|
|
||||||
# }"'';
|
|
||||||
# environment = { DISPLAY = ":0"; };
|
|
||||||
# after = [ "graphical-session.target" ];
|
|
||||||
#};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ in {
|
|||||||
# https://nixos.wiki/wiki/Overlays
|
# https://nixos.wiki/wiki/Overlays
|
||||||
modifications = final: prev: {
|
modifications = final: prev: {
|
||||||
discord-canary = prev.discord-canary.override { withVencord = true; };
|
discord-canary = prev.discord-canary.override { withVencord = true; };
|
||||||
|
discord = prev.discord.override { withVencord = true; };
|
||||||
tetrio-desktop = prev.tetrio-desktop.override { withTetrioPlus = true; };
|
tetrio-desktop = prev.tetrio-desktop.override { withTetrioPlus = true; };
|
||||||
#hyprland = prev.hyprland.overrideAttrs (oldAttrs: {
|
#hyprland = prev.hyprland.overrideAttrs (oldAttrs: {
|
||||||
# version = "0.45.0";
|
# version = "0.45.0";
|
||||||
|
|||||||
Reference in New Issue
Block a user