default.nix 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. { config, pkgs, ... }:
  2. let
  3. waybar = pkgs.waybar.override {
  4. pulseSupport = true;
  5. };
  6. in
  7. {
  8. programs.sway = {
  9. enable = true;
  10. extraPackages = with pkgs; [
  11. swaylock
  12. swayidle
  13. wl-clipboard
  14. qt5.qtwayland
  15. waybar
  16. mako
  17. bemenu
  18. grim
  19. slurp
  20. xwayland
  21. lxqt.lxqt-openssh-askpass
  22. xorg.xrdb
  23. xdg-dbus-proxy
  24. libnotify
  25. gnome3.networkmanagerapplet
  26. gnome3.networkmanager_openvpn
  27. gnome3.zenity
  28. gvfs
  29. qt5ct
  30. libsForQt5.qtstyleplugin-kvantum
  31. gnome_themes_standard
  32. adapta-gtk-theme
  33. hicolor-icon-theme
  34. arc-icon-theme
  35. vanilla-dmz
  36. ];
  37. extraSessionCommands = ''
  38. export XDG_CURRENT_DESKTOP=sway
  39. export XDG_SESSION_TYPE=wayland
  40. export SSH_ASKPASS=lxqt-openssh-askpass
  41. export MOZ_ENABLE_WAYLAND=1
  42. export QT_QPA_PLATFORM=wayland
  43. export QT_QPA_PLATFORMTHEME=qt5ct
  44. export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
  45. export SDL_VIDEODRIVER=wayland
  46. export _JAVA_AWT_WM_NONREPARENTING=1
  47. export BEMENU_BACKEND=wayland
  48. '';
  49. };
  50. fonts.fonts = with pkgs; [
  51. noto-fonts
  52. noto-fonts-cjk
  53. fira-mono
  54. fira-code
  55. fira-code-symbols
  56. ];
  57. environment.etc."dconf/profile/user".text = ''
  58. user-db:user
  59. system-db:system-wide
  60. '';
  61. environment.etc."dconf/db/system-wide.d/gnome".text = ''
  62. [org/gnome/desktop/interface]
  63. cursor-theme='Vanilla-DMZ'
  64. gtk-theme='Adapta'
  65. icon-theme='Arc'
  66. font-name='Noto Sans 10'
  67. '';
  68. programs.firejail = {
  69. enable = true;
  70. wrappedBinaries = {
  71. firefox = "${pkgs.firefox}/bin/firefox";
  72. chromium = "${pkgs.chromium}/bin/chromium";
  73. };
  74. };
  75. programs.light.enable = true;
  76. environment.systemPackages = with pkgs; [
  77. pcmanfm
  78. lxappearance
  79. pavucontrol
  80. pamixer
  81. gnumeric
  82. mpv
  83. keepassxc
  84. deadbeef
  85. lxqt.qterminal
  86. virtmanager
  87. ];
  88. i18n.inputMethod.enabled = "fcitx";
  89. i18n.inputMethod.fcitx.engines = with pkgs.fcitx-engines ; [ mozc ];
  90. }