From 4da1182c6f92e5035025702f2b0619416e96ddff Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 23 Aug 2025 13:16:06 +0200 Subject: [PATCH] Pass input more sensibly --- flake.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 319c7f4..2dbbe9a 100644 --- a/flake.nix +++ b/flake.nix @@ -21,11 +21,19 @@ }; outputs = - { darwin, home-manager, nix-rosetta-builder, ... }@inputs: + { + darwin, + home-manager, + nix-rosetta-builder, + emacs-larstvei, + ... + }: { darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem { system = "aarch64-darwin"; + specialArgs = { inherit emacs-larstvei; }; + modules = [ ./modules/core.nix ./modules/macos.nix @@ -40,9 +48,9 @@ home-manager = { useGlobalPkgs = true; useUserPackages = true; + extraSpecialArgs = { inherit emacs-larstvei; }; users.larstvei = { imports = [ - { _module.args = inputs; } # <- one could ask, why? ./modules/home.nix ]; };