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 ]; };