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.

137 lines
3.0 KiB

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