2025-05-12 15:19:01 -07:00
|
|
|
{
|
2025-05-19 21:42:58 -07:00
|
|
|
self,
|
2025-05-12 15:19:01 -07:00
|
|
|
nixpkgs,
|
|
|
|
# TODO: apply overlays here
|
|
|
|
overlays,
|
|
|
|
inputs,
|
|
|
|
}:
|
2025-07-04 21:29:59 -07:00
|
|
|
user: system:
|
2025-05-12 15:19:01 -07:00
|
|
|
let
|
|
|
|
darwin = nixpkgs.lib.strings.hasSuffix "-darwin" system;
|
|
|
|
|
|
|
|
host = {
|
|
|
|
inherit darwin;
|
|
|
|
linux = !darwin;
|
|
|
|
};
|
|
|
|
|
|
|
|
userDir = ../users + "/${user}";
|
|
|
|
userConfig = import (userDir + "/user.nix");
|
|
|
|
in
|
|
|
|
(inputs.nvf.lib.neovimConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
modules = builtins.filter (f: f != null) [
|
2025-07-04 21:29:59 -07:00
|
|
|
(../users + ("/" + user + "/vim.nix"))
|
2025-05-12 15:19:01 -07:00
|
|
|
../modules/neovim
|
|
|
|
];
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit host;
|
2025-07-04 21:29:59 -07:00
|
|
|
flake = self;
|
2025-05-12 15:19:01 -07:00
|
|
|
user = userConfig;
|
|
|
|
};
|
|
|
|
}).neovim
|