1
0

default.nix 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. { config, pkgs, ... }:
  2. {
  3. imports = [
  4. ];
  5. environment.systemPackages = with pkgs; [
  6. cliphist
  7. wl-clipboard
  8. mission-center
  9. hyprpicker
  10. nomacs
  11. gammastep
  12. geoclue2
  13. wtype
  14. ];
  15. programs.sway = {
  16. enable = true;
  17. wrapperFeatures.gtk = true;
  18. extraPackages = with pkgs; [
  19. alacritty
  20. swaylock
  21. swayidle
  22. swaybg
  23. ];
  24. };
  25. programs.foot.enable = false;
  26. programs.kdeconnect.enable = true;
  27. environment.variables = {
  28. GDK_BACKEND = "wayland";
  29. XDG_SESSION_TYPE = "wayland";
  30. WLR_DRM_NO_ATOMIC = "1";
  31. NIXOS_OZONE_WL = "1";
  32. WLR_RENDERER = "vulkan";
  33. WLR_NO_HARDWARE_CURSORS = "1";
  34. ELECTRON_OZONE_PLATFORM_HINT = "wayland";
  35. };
  36. xdg.portal = {
  37. enable = true;
  38. wlr.enable = true;
  39. extraPortals = with pkgs; [
  40. xdg-desktop-portal-wlr
  41. ];
  42. };
  43. environment.sessionVariables = {
  44. NIXOS_OZONE_WL = "1";
  45. QT_QPA_PLATFORM = "wayland";
  46. XDG_CURRENT_DESKTOP = "sway";
  47. WLR_NO_HARDWARE_CURSORS = "1";
  48. };
  49. security.pam.services.swaylock = {};
  50. services.gnome.gnome-keyring.enable = true;
  51. security.pam.services.login.enableGnomeKeyring = true;
  52. }