default.nix 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. libnotify
  24. gnome3.networkmanagerapplet
  25. gnome3.networkmanager_openvpn
  26. gvfs
  27. qt5ct
  28. libsForQt5.qtstyleplugin-kvantum
  29. gnome_themes_standard
  30. adapta-gtk-theme
  31. hicolor-icon-theme
  32. arc-icon-theme
  33. vanilla-dmz
  34. ];
  35. extraSessionCommands = ''
  36. export SSH_ASKPASS=lxqt-openssh-askpass
  37. export MOZ_ENABLE_WAYLAND=1
  38. export QT_QPA_PLATFORM=wayland
  39. export QT_QPA_PLATFORMTHEME=qt5ct
  40. export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
  41. export SDL_VIDEODRIVER=wayland
  42. export _JAVA_AWT_WM_NONREPARENTING=1
  43. export BEMENU_BACKEND=wayland
  44. '';
  45. };
  46. fonts.fonts = with pkgs; [
  47. noto-fonts
  48. noto-fonts-cjk
  49. fira-mono
  50. fira-code
  51. fira-code-symbols
  52. ];
  53. environment.etc."dconf/profile/user".text = ''
  54. user-db:user
  55. system-db:system-wide
  56. '';
  57. environment.etc."dconf/db/system-wide.d/gnome".text = ''
  58. [org/gnome/desktop/interface]
  59. cursor-theme='Vanilla-DMZ'
  60. gtk-theme='Adapta'
  61. icon-theme='Arc'
  62. font-name='Noto Sans 10'
  63. '';
  64. programs.firejail = {
  65. enable = true;
  66. wrappedBinaries = {
  67. firefox = "${pkgs.firefox}/bin/firefox";
  68. chromium = "${pkgs.chromium}/bin/chromium";
  69. };
  70. };
  71. programs.light.enable = true;
  72. environment.systemPackages = with pkgs; [
  73. pcmanfm
  74. lxappearance
  75. pavucontrol
  76. pamixer
  77. gnumeric
  78. mpv
  79. keepassxc
  80. deadbeef
  81. lxqt.qterminal
  82. syncthing-gtk
  83. virtmanager
  84. ];
  85. i18n.inputMethod.enabled = "fcitx";
  86. i18n.inputMethod.fcitx.engines = with pkgs.fcitx-engines ; [ mozc ];
  87. }