feat: nb performance tweaks

This commit is contained in:
2025-10-15 11:39:29 +02:00
parent df6465fa8a
commit 356c049aaf
4 changed files with 22 additions and 12 deletions

View File

@@ -17,7 +17,12 @@
flatpak install --system -y --noninteractive --or-update flathub io.github.yuki_iptv.yuki-iptv
flatpak install --system -y --noninteractive --or-update flathub com.google.AndroidStudio
flatpak run --command=bash com.google.AndroidStudio -c 'curl -fsSL https://claude.ai/install.sh | bash'
# Only run claude.ai install script once
STAMP_FILE="/var/lib/flatpak-android-studio-claude-installed"
if [ ! -f "$STAMP_FILE" ]; then
flatpak run --command=bash com.google.AndroidStudio -c 'curl -fsSL https://claude.ai/install.sh | bash' && touch "$STAMP_FILE"
fi
'';
};

View File

@@ -12,6 +12,11 @@ in {
# android-tools
];
# Electron apps Wayland optimizations for better performance
environment.sessionVariables = {
ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
nixpkgs.config.android_sdk.accept_license = true;
programs.adb.enable = true; # sets up udev + adb group

View File

@@ -302,20 +302,20 @@ exec cryptomator
exec swayidle \
before-sleep 'loginctl lock-session $XDG_SESSION_ID' \
lock 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
timeout 180 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
timeout 300 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
timeout 1800 'systemctl suspend'
exec dunst
#exec --no-startup-id swaybg -c "#000000" -m fill -i ~/.config/wallpaper/wot.jpg
# exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec 'sleep 2; swaymsg workspace "$ws8"; swaymsg layout tabbed'
exec 'sleep 1; swaymsg workspace "$ws8"; swaymsg layout tabbed'
exec mako --default-timeout=5000
# Battery low warning every minute
exec_always sh -c 'while :; do battery-alert-swaynag; sleep 60; done' &
# Battery low warning every 2 minutes
exec_always sh -c 'while :; do battery-alert-swaynag; sleep 120; done' &
# wallpaper
# output eDP-1 scale 2 scale_filter linear
output eDP-1 mode 2880x1920 scale 2 scale_filter linear
# output eDP-1 scale 2 scale_filter nearest
output eDP-1 mode 2880x1920 scale 2 scale_filter nearest
output eDP-1 bg #282a36 solid_color
output eDP-1 bg ~/.wallpaper.png center
output DP-2 position 0 0

View File

@@ -10,8 +10,6 @@ let
text = ''
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user import-environment DISPLAY
export STEAM_RUNTIME=0
'';
@@ -76,9 +74,11 @@ in {
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraOptions = [
"--unsupported-gpu"
];
extraOptions = [ ];
extraSessionCommands = ''
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER=vulkan
'';
};
environment.etc = {