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.

123 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-roam-server
  22. epkgs.org-drill
  23. epkgs.org-pomodoro
  24. epkgs.writegood-mode
  25. epkgs.ob-http
  26. epkgs.ox-hugo
  27. epkgs.ox-reveal
  28. epkgs.password-store
  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.brightnessctl
  72. pkgs.plantuml
  73. pkgs.nixfmt
  74. ];
  75. programs.emacs = {
  76. enable = true;
  77. package = myEmacs;
  78. };
  79. xsession = {
  80. enable = true;
  81. windowManager.command = ''
  82. ${pkgs.nitrogen}/bin/nitrogen --restore
  83. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  84. ${myEmacs}/bin/emacsclient -c
  85. '';
  86. };
  87. home.file.".xinitrc" = {
  88. text = ''
  89. exec ./.xsession
  90. '';
  91. };
  92. # Deploy the authinfo file.
  93. home.file.".authinfo.gpg".source = ../config/authinfo.gpg;
  94. # Deploy the isync configuration file.
  95. home.file.".mbsyncrc" = {
  96. text = ''
  97. IMAPStore xyz-remote
  98. Host mail.chrishayward.xyz
  99. User chris@chrishayward.xyz
  100. PassCmd "pass chrishayward.xyz/chris"
  101. SSLType IMAPS
  102. MaildirStore xyz-local
  103. Path ~/.cache/mail/
  104. Inbox ~/.cache/mail/inbox
  105. SubFolders Verbatim
  106. Channel xyz
  107. Far :xyz-remote:
  108. Near :xyz-local:
  109. Patterns * !Archives
  110. Create Both
  111. Expunge Both
  112. SyncState *
  113. '';
  114. };
  115. }