Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | args @ { pkgs |
| 2 | , lib |
| 3 | , home |
| 4 | , username |
Skyler Grey | 48e12a4 | 2023-02-13 06:51:56 +0000 | [diff] [blame] | 5 | , utils |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 6 | , ... |
Skyler Grey | 48e12a4 | 2023-02-13 06:51:56 +0000 | [diff] [blame] | 7 | }: { |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 8 | config = { |
Skyler Grey | 55f8455 | 2022-09-05 11:04:39 +0100 | [diff] [blame] | 9 | environment = { |
| 10 | variables = { |
Skyler Grey | f68931b | 2022-10-31 00:13:46 +0000 | [diff] [blame] | 11 | EDITOR = "${pkgs.neovim}/bin/nvim"; |
Skyler Grey | 55f8455 | 2022-09-05 11:04:39 +0100 | [diff] [blame] | 12 | }; |
| 13 | defaultPackages = [ |
| 14 | pkgs.perl |
| 15 | pkgs.rsync |
| 16 | pkgs.strace |
| 17 | pkgs.neovim |
| 18 | ]; # The basic default packages, although with nvim replacing nano |
Skyler Grey | 289997a | 2023-01-25 21:31:50 +0000 | [diff] [blame] | 19 | persistence."/nix/persist".users.${username}.directories = [ |
| 20 | ".local/share/cspell" |
| 21 | ".codeium" |
| 22 | ".config/nvim/undo" |
| 23 | ]; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 24 | }; |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | home = { |
| 28 | imports = lib.pipe ./neovim [ |
| 29 | utils.dirsIn |
| 30 | utils.importAll |
| 31 | (map (f: |
| 32 | if builtins.typeOf f == "lambda" |
| 33 | then f args |
| 34 | else f)) |
| 35 | ]; |
| 36 | programs.neovim = { |
| 37 | enable = true; |
| 38 | viAlias = true; |
| 39 | vimAlias = true; |
| 40 | vimdiffAlias = true; |
| 41 | }; |
Skyler Grey | f68931b | 2022-10-31 00:13:46 +0000 | [diff] [blame] | 42 | home = { |
Skyler Grey | e331d69 | 2022-11-02 21:33:09 +0000 | [diff] [blame] | 43 | packages = with pkgs; [ neovide xclip ]; |
Skyler Grey | f68931b | 2022-10-31 00:13:46 +0000 | [diff] [blame] | 44 | sessionVariables = { |
| 45 | EDITOR = "${home.programs.neovim.finalPackage}/bin/nvim"; |
| 46 | }; |
| 47 | }; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 48 | }; |
| 49 | } |