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