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