about summary refs log tree commit diff stats
path: root/flake/packages/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake/packages/default.nix')
-rw-r--r--flake/packages/default.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/flake/packages/default.nix b/flake/packages/default.nix
index 7a8aacc2..b670793d 100644
--- a/flake/packages/default.nix
+++ b/flake/packages/default.nix
@@ -13,23 +13,20 @@
   inherit (import ./merge.nix {inherit lib;}) merge;
   output = import ../../bootstrap {inherit pkgs sysLib;};
 
-  args = {
-    inherit pkgs;
-    inherit (pkgs) lib;
-  };
-
   nvim =
     builtins.mapAttrs (
       name: value: let
         nvim_config =
           import ../../modules/home/conf/nvim/default.nix
-          args;
-        build_args =
-          args
-          // {
-            nixosConfig = value.config;
-            config = value.config.home-manager.users.soispha;
-          };
+          build_args;
+        build_args = let
+          inherit (value._module.args) pkgs;
+          inherit (pkgs) lib;
+        in {
+          inherit pkgs lib;
+          nixosConfig = value.config;
+          config = value.config.home-manager.users.soispha;
+        };
 
         resolve_imports = attrs:
           merge (builtins.map (v: import v build_args)
@@ -94,8 +91,6 @@ in
     #   format = "install-iso";
     # };
 
-    inherit myPkgs;
-
     update_shell_lib = shell_library.packages."${system}".update_shell_library;
 
     # gpg-iso = nixos-generators.nixosGenerate {