home-manager: use attr for long function args

This commit is contained in:
Ching Pei Yang 2024-12-29 18:46:55 +01:00
parent 8280ac0feb
commit dd567ccb7e
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
2 changed files with 9 additions and 2 deletions

View file

@ -31,7 +31,10 @@
};
homeManagerModules = {
nvf = import ./flake/modules/home-manager.nix self.packages lib inputs;
nvf = import ./flake/modules/home-manager.nix {
inherit lib inputs;
inherit (self) packages;
};
default = self.homeManagerModules.nvf;
neovim-flake =
lib.warn ''

View file

@ -1,5 +1,9 @@
# Home Manager module
packages: lib: inputs: {
{
packages,
lib,
inputs,
}: {
config,
pkgs,
...