mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-31 05:10:12 +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 =
|
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user