I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.6 KiB

3 years ago
3 years ago
  1. # This file is controlled by /etc/dotfiles/README.org
  2. { pkgs, ... }:
  3. let
  4. myEmacs = pkgs.emacsWithPackagesFromUsePackage {
  5. config = ../README.org;
  6. package = pkgs.emacsGcc;
  7. alwaysEnsure = true;
  8. alwaysTangle = true;
  9. extraEmacsPackages = epkgs: [
  10. # Required packages...
  11. epkgs.exwm
  12. epkgs.evil
  13. epkgs.evil-collection
  14. epkgs.evil-surround
  15. epkgs.evil-nerd-commenter
  16. epkgs.general
  17. epkgs.which-key
  18. # Optional packages.
  19. epkgs.org
  20. epkgs.org-roam
  21. epkgs.org-drill
  22. epkgs.org-pomodoro
  23. epkgs.writegood-mode
  24. epkgs.ob-http
  25. epkgs.ox-hugo
  26. epkgs.password-store
  27. epkgs.docker
  28. epkgs.dockerfile-mode
  29. epkgs.mu4e-alert
  30. epkgs.dired-single
  31. epkgs.all-the-icons
  32. epkgs.all-the-icons-dired
  33. epkgs.emojify
  34. epkgs.eshell-prompt-extras
  35. epkgs.vterm
  36. epkgs.magit
  37. epkgs.hydra
  38. epkgs.elfeed
  39. epkgs.nix-mode
  40. epkgs.projectile
  41. epkgs.lsp-mode
  42. epkgs.lsp-ui
  43. epkgs.company
  44. epkgs.ccls
  45. epkgs.go-mode
  46. epkgs.pretty-mode
  47. epkgs.rustic
  48. epkgs.plantuml-mode
  49. epkgs.protobuf-mode
  50. epkgs.ivy
  51. epkgs.counsel
  52. epkgs.ivy-rich
  53. epkgs.ivy-posframe
  54. epkgs.ivy-prescient
  55. epkgs.desktop-environment
  56. epkgs.doom-themes
  57. epkgs.doom-modeline
  58. ];
  59. };
  60. in {
  61. home.packages = [
  62. pkgs.nitrogen
  63. pkgs.autorandr
  64. pkgs.pass
  65. pkgs.mu
  66. pkgs.isync
  67. pkgs.aspell
  68. pkgs.aspellDicts.en
  69. pkgs.aspellDicts.en-science
  70. pkgs.aspellDicts.en-computers
  71. pkgs.texlive.combined.scheme-full
  72. pkgs.brightnessctl
  73. pkgs.plantuml
  74. pkgs.nixfmt
  75. ];
  76. programs.emacs = {
  77. enable = true;
  78. package = myEmacs;
  79. };
  80. xsession = {
  81. enable = true;
  82. windowManager.command = ''
  83. ${pkgs.nitrogen}/bin/nitrogen --restore
  84. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  85. ${myEmacs}/bin/emacsclient -c
  86. '';
  87. };
  88. home.file.".xinitrc" = {
  89. text = ''
  90. exec ./.xsession
  91. '';
  92. };
  93. # Deploy the authinfo file.
  94. home.file.".authinfo.gpg".source = ../config/authinfo.gpg;
  95. # Deploy the isync configuration file.
  96. home.file.".mbsyncrc" = {
  97. text = ''
  98. IMAPStore xyz-remote
  99. Host mail.chrishayward.xyz
  100. User chris@chrishayward.xyz
  101. PassCmd "pass chrishayward.xyz/chris"
  102. SSLType IMAPS
  103. MaildirStore xyz-local
  104. Path ~/.cache/mail/
  105. Inbox ~/.cache/mail/inbox
  106. SubFolders Verbatim
  107. Channel xyz
  108. Far :xyz-remote:
  109. Near :xyz-local:
  110. Patterns * !Archives
  111. Create Both
  112. Expunge Both
  113. SyncState *
  114. '';
  115. };
  116. }