mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
flake: add extraSpecialArgs
This allows flake user to pass extra arguments to all modules.
This commit is contained in:
parent
a361541c10
commit
cf5dad76c1
2 changed files with 5 additions and 3 deletions
|
|
@ -9,11 +9,11 @@
|
|||
lib = {
|
||||
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
||||
homeManagerConfiguration = { configuration, system, homeDirectory
|
||||
, username
|
||||
, username, extraSpecialArgs ? { }
|
||||
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
||||
, check ? true }@args:
|
||||
import ./modules {
|
||||
inherit pkgs check;
|
||||
inherit pkgs check extraSpecialArgs;
|
||||
configuration = { ... }: {
|
||||
imports = [ configuration ];
|
||||
home = { inherit homeDirectory username; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue