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.

136 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.emacsGcc;
  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.plantuml-mode
  54. epkgs.protobuf-mode
  55. # User interface packages.
  56. epkgs.ivy
  57. epkgs.counsel
  58. epkgs.ivy-rich
  59. epkgs.ivy-posframe
  60. epkgs.ivy-prescient
  61. epkgs.desktop-environment
  62. epkgs.doom-themes
  63. epkgs.doom-modeline
  64. ];
  65. };
  66. in {
  67. home.packages = [
  68. pkgs.nitrogen
  69. pkgs.autorandr
  70. pkgs.pass
  71. pkgs.mu
  72. pkgs.isync
  73. pkgs.aspell
  74. pkgs.aspellDicts.en
  75. pkgs.aspellDicts.en-science
  76. pkgs.aspellDicts.en-computers
  77. # pkgs.texlive.combined.scheme-full
  78. pkgs.brightnessctl
  79. pkgs.plantuml
  80. pkgs.nixfmt
  81. pkgs.rnix-lsp
  82. (pkgs.writeShellScriptBin "dotfiles-theme" ''
  83. ${myEmacs}/bin/emacsclient --no-wait --eval '(json-encode (dotfiles/theme))' | sed "s/\\\\//g" | sed -e 's/^"//' -e 's/"$//'
  84. '')
  85. ];
  86. programs.emacs = {
  87. enable = true;
  88. package = myEmacs;
  89. };
  90. xsession = {
  91. enable = true;
  92. windowManager.command = ''
  93. ${pkgs.nitrogen}/bin/nitrogen --restore
  94. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  95. ${myEmacs}/bin/emacsclient -c
  96. '';
  97. };
  98. home.file.".xinitrc" = {
  99. text = ''
  100. exec ./.xsession
  101. '';
  102. };
  103. # Deploy the authinfo file.
  104. home.file.".authinfo.gpg".source = ../config/authinfo.gpg;
  105. # Deploy the isync configuration file.
  106. home.file.".mbsyncrc" = {
  107. text = ''
  108. IMAPStore xyz-remote
  109. Host mail.chrishayward.xyz
  110. User chris@chrishayward.xyz
  111. PassCmd "pass chrishayward.xyz/chris"
  112. SSLType IMAPS
  113. MaildirStore xyz-local
  114. Path ~/.cache/mail/
  115. Inbox ~/.cache/mail/inbox
  116. SubFolders Verbatim
  117. Channel xyz
  118. Far :xyz-remote:
  119. Near :xyz-local:
  120. Patterns * !Archives
  121. Create Both
  122. Expunge Both
  123. SyncState *
  124. '';
  125. };
  126. }