1
0

default.nix 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. kitty
  15. alacritty
  16. hyprlauncher
  17. ];
  18. programs.hyprland = {
  19. enable = true;
  20. withUWSM = true;
  21. xwayland.enable = true;
  22. };
  23. programs.kdeconnect.enable = true;
  24. environment.variables = {
  25. GDK_BACKEND = "wayland";
  26. XDG_SESSION_TYPE = "wayland";
  27. WLR_DRM_NO_ATOMIC = "1";
  28. NIXOS_OZONE_WL = "1";
  29. WLR_RENDERER = "vulkan";
  30. WLR_NO_HARDWARE_CURSORS = "1";
  31. ELECTRON_OZONE_PLATFORM_HINT = "wayland";
  32. };
  33. services.dbus.enable = true;
  34. xdg.portal = {
  35. enable = true;
  36. extraPortals = with pkgs; [
  37. xdg-desktop-portal-gtk
  38. xdg-desktop-portal-wlr
  39. ];
  40. wlr.enable = true;
  41. config = {
  42. common = {
  43. # Use hyprland portal for screen sharing (screencast)
  44. "org.freedesktop.impl.portal.Screencast" = "hyprland";
  45. "org.freedesktop.impl.portal.Screenshot" = "hyprland";
  46. };
  47. };
  48. };
  49. environment.sessionVariables = {
  50. NIXOS_OZONE_WL = "1";
  51. QT_QPA_PLATFORM = "wayland";
  52. XDG_CURRENT_DESKTOP = "hyprland";
  53. WLR_NO_HARDWARE_CURSORS = "1";
  54. };
  55. services.gnome.gnome-keyring.enable = true;
  56. security.pam.services.login.enableGnomeKeyring = true;
  57. }