2025-08-17 20:40:58 -07:00
|
|
|
{ self, inputs }:
|
|
|
|
user: pkgs:
|
2025-05-12 15:19:01 -07:00
|
|
|
let
|
2025-08-17 20:40:58 -07:00
|
|
|
darwin = pkgs.lib.strings.hasSuffix "-darwin" pkgs.system;
|
2025-05-12 15:19:01 -07:00
|
|
|
|
|
|
|
host = {
|
|
|
|
inherit darwin;
|
|
|
|
linux = !darwin;
|
|
|
|
};
|
|
|
|
|
|
|
|
userDir = ../users + "/${user}";
|
|
|
|
userConfig = import (userDir + "/user.nix");
|
|
|
|
in
|
|
|
|
(inputs.nvf.lib.neovimConfiguration {
|
2025-08-17 20:40:58 -07:00
|
|
|
inherit pkgs;
|
2025-05-12 15:19:01 -07:00
|
|
|
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
|