1

propagate mylib to modules

This commit is contained in:
2022-08-08 19:46:58 +02:00
parent 35141735b5
commit 91258d3f0d
6 changed files with 13 additions and 10 deletions

View File

@ -4,13 +4,13 @@ let
inherit (inputs) home-manager;
in rec {
mkNixosConfig = { system ? "x86_64-linux", hostname, username ? "christoph", extraModules ? [ ] }:
mkNixosConfig = { system ? "x86_64-linux", mylib, hostname, username ? "christoph", extraModules ? [ ] }:
lib.nixosSystem {
inherit system;
# Make our inputs available to the configuration.nix (for importing modules)
# specialArgs are propagated to all modules
specialArgs = { inherit inputs hostname; };
specialArgs = { inherit inputs hostname mylib; };
modules = builtins.concatLists [
[
@ -32,6 +32,8 @@ in rec {
# know how to handle that...
[
home-manager.nixosModules.home-manager {
# extraSpecialArgs are propagated to all hm config modules
home-manager.extraSpecialArgs = { inherit inputs hostname mylib; };
# Use systems pkgs, disables nixpkgs.* options in home.nix
home-manager.useGlobalPkgs = true;