Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | args @ { |
| 2 | pkgs, |
| 3 | lib, |
| 4 | home, |
| 5 | ... |
| 6 | }: let |
| 7 | utils = import ../utils lib; |
| 8 | in { |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 9 | config = { |
| 10 | environment.variables = { |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 11 | EDITOR = "nvim"; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 12 | }; |
| 13 | environment.defaultPackages = [ |
| 14 | pkgs.perl |
| 15 | pkgs.rsync |
| 16 | pkgs.strace |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 17 | pkgs.neovim |
| 18 | ]; # The basic default packages, although with nvim replacing nano |
| 19 | }; |
| 20 | |
| 21 | home = { |
| 22 | imports = lib.pipe ./neovim [ |
| 23 | utils.dirsIn |
| 24 | utils.importAll |
| 25 | (map (f: |
| 26 | if builtins.typeOf f == "lambda" |
| 27 | then f args |
| 28 | else f)) |
| 29 | ]; |
| 30 | programs.neovim = { |
| 31 | enable = true; |
| 32 | viAlias = true; |
| 33 | vimAlias = true; |
| 34 | vimdiffAlias = true; |
| 35 | }; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 36 | }; |
| 37 | } |