Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sway #32

Merged
merged 27 commits into from
Jan 19, 2025
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2b6e087
feat: start adding sway config
datsfilipe Jan 12, 2025
f8bc757
feat: add sway configurations and replacements
datsfilipe Jan 15, 2025
2d3ce9e
docs: add caution note about current broken state of this config
datsfilipe Jan 15, 2025
5e74ac9
chore: add packages for wayland sway
datsfilipe Jan 18, 2025
7902817
feat: update keymaps for sway
datsfilipe Jan 18, 2025
4581b56
feat: add extra options for sway
datsfilipe Jan 18, 2025
abfac33
feat: add options for wayland to nvidia config
datsfilipe Jan 18, 2025
8bf67be
feat: add sway startup and start wallpaper service there
datsfilipe Jan 18, 2025
5872e58
fix: not starting xdg portal because it messes up with my dark mode
datsfilipe Jan 18, 2025
5f16926
refactor: restart wallpaper service on sway startup
datsfilipe Jan 18, 2025
972de82
refactor: remove udiskie tray since not working
datsfilipe Jan 18, 2025
c7b9a61
refactor: use bemenu on sway
datsfilipe Jan 18, 2025
1da6231
feat: remove window titles in sway
datsfilipe Jan 18, 2025
5ec3cfd
feat: export var for java applications
datsfilipe Jan 18, 2025
eeeccc5
refactor: use default wmenu
datsfilipe Jan 18, 2025
78e20ea
chore: add hardware acceleration option although chrome is still buggy
datsfilipe Jan 18, 2025
ef701b9
refactor: add titles back :3
datsfilipe Jan 18, 2025
f08b6ca
feat: add astal for sway bar integration
datsfilipe Jan 19, 2025
3f45f39
fix: flameshot for wayland
datsfilipe Jan 19, 2025
6cc7687
fix: correct sys tray
datsfilipe Jan 19, 2025
18fc2d4
fix: update styles for tray menus
datsfilipe Jan 19, 2025
cfe9f86
feat: add utils
datsfilipe Jan 19, 2025
e880c39
refactor: use config to decide about flameshot package
datsfilipe Jan 19, 2025
9d86807
feat: add udiskie tray back
datsfilipe Jan 19, 2025
1d3aa7c
refactor: update startup apps
datsfilipe Jan 19, 2025
a6dc553
docs: update README
datsfilipe Jan 19, 2025
f592dcd
fix: occupied workspaces
datsfilipe Jan 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add options for wayland to nvidia config
datsfilipe committed Jan 18, 2025

Verified

This commit was signed with the committer’s verified signature.
agostbiro Agost Biro
commit abfac3359ca390a253476cb338d3fd4cae0a6958
10 changes: 9 additions & 1 deletion modules/nixos/desktop/nvidia.nix
Original file line number Diff line number Diff line change
@@ -9,7 +9,15 @@ with lib; {
};

config = mkIf config.modules.desktop.nvidia.enable {
environment.variables = mkIf config.modules.desktop.wayland.enable {
LIBVA_DRIVER_NAME = "nvidia";
NVD_BACKEND = "direct";
NIXOS_OZONE_WL = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
boot.extraModprobeConfig = "options nvidia-drm modeset=1";
boot.kernelParams = ["nvidia.NVreg_EnableGpuFirmware=0" "nvidia.NVreg_PreserveVideoMemoryAllocations=1"];
boot.initrd.kernelModules =
config.boot.kernelModules
++ [
@@ -23,7 +31,7 @@ with lib; {
package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
powerManagement.enable = true;
forceFullCompositionPipeline = true;
forceFullCompositionPipeline = false;
nvidiaSettings = true;
open = false;
};