blob: ef11b6fc9e7f9723b0f28f6b1f8a7a2b852d2f7f [file] [log] [blame]
Skyler Greya7feb6e2022-08-26 06:51:55 +01001args @ {
2 pkgs,
3 lib,
4 home,
Skyler Grey55f84552022-09-05 11:04:39 +01005 username,
Skyler Greya7feb6e2022-08-26 06:51:55 +01006 ...
7}: let
8 utils = import ../utils lib;
9in {
Skyler Grey6aa7c262022-08-20 22:22:03 +010010 config = {
Skyler Grey55f84552022-09-05 11:04:39 +010011 environment = {
12 variables = {
13 EDITOR = "nvim";
14 };
15 defaultPackages = [
16 pkgs.perl
17 pkgs.rsync
18 pkgs.strace
19 pkgs.neovim
20 ]; # The basic default packages, although with nvim replacing nano
21 persistence."/nix/persist".users.${username}.directories = [".local/share/cspell"];
Skyler Grey6aa7c262022-08-20 22:22:03 +010022 };
Skyler Greya7feb6e2022-08-26 06:51:55 +010023 };
24
25 home = {
26 imports = lib.pipe ./neovim [
27 utils.dirsIn
28 utils.importAll
29 (map (f:
30 if builtins.typeOf f == "lambda"
31 then f args
32 else f))
33 ];
34 programs.neovim = {
35 enable = true;
36 viAlias = true;
37 vimAlias = true;
38 vimdiffAlias = true;
39 };
Skyler Grey826dd542022-09-11 00:52:14 +010040 home.packages = [pkgs.neovide];
Skyler Grey6aa7c262022-08-20 22:22:03 +010041 };
42}