default.nix 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. };
  30. xdg.portal = {
  31. enable = true;
  32. wlr.enable = true;
  33. extraPortals = with pkgs; [
  34. xdg-desktop-portal-wlr
  35. ];
  36. };
  37. environment.sessionVariables = {
  38. NIXOS_OZONE_WL = "1";
  39. QT_QPA_PLATFORM = "wayland";
  40. XDG_CURRENT_DESKTOP = "sway";
  41. };
  42. security.pam.services.swaylock = {};
  43. services.gnome.gnome-keyring.enable = true;
  44. security.pam.services.login.enableGnomeKeyring = true;
  45. }