default.nix 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. environment.variables = {
  27. GDK_BACKEND = "wayland";
  28. XDG_SESSION_TYPE = "wayland";
  29. WLR_DRM_NO_ATOMIC = "1";
  30. NIXOS_OZONE_WL = "1";
  31. WLR_RENDERER = "vulkan";
  32. WLR_NO_HARDWARE_CURSORS = "1";
  33. ELECTRON_OZONE_PLATFORM_HINT = "wayland";
  34. };
  35. xdg.portal = {
  36. enable = true;
  37. wlr.enable = true;
  38. extraPortals = with pkgs; [
  39. xdg-desktop-portal-wlr
  40. ];
  41. };
  42. environment.sessionVariables = {
  43. NIXOS_OZONE_WL = "1";
  44. QT_QPA_PLATFORM = "wayland";
  45. XDG_CURRENT_DESKTOP = "sway";
  46. WLR_NO_HARDWARE_CURSORS = "1";
  47. };
  48. security.pam.services.swaylock = {};
  49. services.gnome.gnome-keyring.enable = true;
  50. security.pam.services.login.enableGnomeKeyring = true;
  51. }