mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 04:40:13 +00:00
Pass input more sensibly
This commit is contained in:
parent
16115be5c9
commit
4da1182c6f
12
flake.nix
12
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
|
||||
];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user