home-manager: use attr for long function args

This commit is contained in:
Ching Pei Yang 2024-12-29 18:46:55 +01:00 committed by diniamo
parent e826f3c7f9
commit 961c428dc5
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -1,9 +1,13 @@
# Home Manager module # Home Manager module
packages: lib: inputs: { {
self,
lib,
}: {
config, config,
pkgs, pkgs,
... ...
}: let }: let
inherit (self) packages inputs;
inherit (lib) maintainers; inherit (lib) maintainers;
inherit (lib.modules) mkIf mkAliasOptionModule; inherit (lib.modules) mkIf mkAliasOptionModule;
inherit (lib.lists) optional; inherit (lib.lists) optional;