From 961c428dc551635854deba804bce0818f7a1f4b4 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 29 Dec 2024 18:46:55 +0100 Subject: [PATCH] home-manager: use attr for long function args --- flake.nix | 2 +- flake/modules/home-manager.nix | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 36929113..53e592aa 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,7 @@ }; 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; neovim-flake = lib.warn '' diff --git a/flake/modules/home-manager.nix b/flake/modules/home-manager.nix index c109e774..715f7537 100644 --- a/flake/modules/home-manager.nix +++ b/flake/modules/home-manager.nix @@ -1,9 +1,13 @@ # Home Manager module -packages: lib: inputs: { +{ + self, + lib, +}: { config, pkgs, ... }: let + inherit (self) packages inputs; inherit (lib) maintainers; inherit (lib.modules) mkIf mkAliasOptionModule; inherit (lib.lists) optional;