Pass input more sensibly

This commit is contained in:
larstvei 2025-08-23 13:16:06 +02:00
parent 16115be5c9
commit 4da1182c6f

View File

@ -21,11 +21,19 @@
}; };
outputs = outputs =
{ darwin, home-manager, nix-rosetta-builder, ... }@inputs: {
darwin,
home-manager,
nix-rosetta-builder,
emacs-larstvei,
...
}:
{ {
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem { darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
specialArgs = { inherit emacs-larstvei; };
modules = [ modules = [
./modules/core.nix ./modules/core.nix
./modules/macos.nix ./modules/macos.nix
@ -40,9 +48,9 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit emacs-larstvei; };
users.larstvei = { users.larstvei = {
imports = [ imports = [
{ _module.args = inputs; } # <- one could ask, why?
./modules/home.nix ./modules/home.nix
]; ];
}; };