Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
2 | , config | ||||
3 | , username | ||||
4 | , lib | ||||
5 | , ... | ||||
6 | }: | ||||
7 | let | ||||
Skyler Grey | 42f6073 | 2022-08-26 06:45:17 +0100 | [diff] [blame] | 8 | cfg = config.minion.emacs; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 9 | in |
10 | { | ||||
Skyler Grey | 42f6073 | 2022-08-26 06:45:17 +0100 | [diff] [blame] | 11 | options.minion.emacs.enable = lib.mkEnableOption "Enable emacs"; |
12 | |||||
Skyler Grey | 32b2196 | 2022-09-09 08:14:38 +0100 | [diff] [blame] | 13 | config = lib.mkIf cfg.enable { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 14 | environment.persistence."/nix/persist".users.${username}.directories = [ ".emacs.d" ]; |
Skyler Grey | 42f6073 | 2022-08-26 06:45:17 +0100 | [diff] [blame] | 15 | }; |
16 | |||||
Skyler Grey | 32b2196 | 2022-09-09 08:14:38 +0100 | [diff] [blame] | 17 | home.programs.emacs = { |
18 | enable = cfg.enable; | ||||
Skyler Grey | a9addb3 | 2022-10-31 00:22:55 +0000 | [diff] [blame] | 19 | extraPackages = epkgs: [ |
20 | pkgs.texlive.combined.scheme-full | ||||
21 | epkgs.citeproc | ||||
22 | pkgs.pdf2svg | ||||
23 | ]; | ||||
Skyler Grey | 32b2196 | 2022-09-09 08:14:38 +0100 | [diff] [blame] | 24 | }; |
Skyler Grey | 42f6073 | 2022-08-26 06:45:17 +0100 | [diff] [blame] | 25 | |
26 | traces = [ | ||||
27 | "home.programs.emacs.enable" | ||||
28 | ]; | ||||
29 | } |