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.ox-reveal
  27. epkgs.password-store
  28. epkgs.docker
  29. epkgs.dockerfile-mode
  30. epkgs.mu4e-alert
  31. epkgs.dired-single
  32. epkgs.all-the-icons
  33. epkgs.all-the-icons-dired
  34. epkgs.emojify
  35. epkgs.eshell-prompt-extras
  36. epkgs.vterm
  37. epkgs.magit
  38. epkgs.hydra
  39. epkgs.elfeed
  40. epkgs.nix-mode
  41. epkgs.projectile
  42. epkgs.lsp-mode
  43. epkgs.lsp-ui
  44. epkgs.company
  45. epkgs.ccls
  46. epkgs.go-mode
  47. epkgs.pretty-mode
  48. epkgs.rustic
  49. epkgs.plantuml-mode
  50. epkgs.protobuf-mode
  51. epkgs.ivy
  52. epkgs.counsel
  53. epkgs.ivy-rich
  54. epkgs.ivy-posframe
  55. epkgs.ivy-prescient
  56. epkgs.desktop-environment
  57. epkgs.doom-themes
  58. epkgs.doom-modeline
  59. ];
  60. };
  61. in {
  62. home.packages = [
  63. pkgs.nitrogen
  64. pkgs.autorandr
  65. pkgs.pass
  66. pkgs.mu
  67. pkgs.isync
  68. pkgs.aspell
  69. pkgs.aspellDicts.en
  70. pkgs.aspellDicts.en-science
  71. pkgs.aspellDicts.en-computers
  72. pkgs.texlive.combined.scheme-full
  73. pkgs.brightnessctl
  74. pkgs.plantuml
  75. pkgs.nixfmt
  76. ];
  77. programs.emacs = {
  78. enable = true;
  79. package = myEmacs;
  80. };
  81. xsession = {
  82. enable = true;
  83. windowManager.command = ''
  84. ${pkgs.nitrogen}/bin/nitrogen --restore
  85. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  86. ${myEmacs}/bin/emacsclient -c
  87. '';
  88. };
  89. home.file.".xinitrc" = {
  90. text = ''
  91. exec ./.xsession
  92. '';
  93. };
  94. # Deploy the authinfo file.
  95. home.file.".authinfo.gpg".source = ../config/authinfo.gpg;
  96. # Deploy the isync configuration file.
  97. home.file.".mbsyncrc" = {
  98. text = ''
  99. IMAPStore xyz-remote
  100. Host mail.chrishayward.xyz
  101. User chris@chrishayward.xyz
  102. PassCmd "pass chrishayward.xyz/chris"
  103. SSLType IMAPS
  104. MaildirStore xyz-local
  105. Path ~/.cache/mail/
  106. Inbox ~/.cache/mail/inbox
  107. SubFolders Verbatim
  108. Channel xyz
  109. Far :xyz-remote:
  110. Near :xyz-local:
  111. Patterns * !Archives
  112. Create Both
  113. Expunge Both
  114. SyncState *
  115. '';
  116. };
  117. }