flake: extend lib globally in hm and nix modules

This commit is contained in:
Zynh Ludwig 2024-07-24 00:16:52 -07:00
parent 3fe55b566a
commit f2699971d4

View file

@ -10,7 +10,7 @@ rec {
name = hostname; name = hostname;
value = nixpkgs.lib.nixosSystem { value = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs lib; };
modules = [ modules = [
../hosts/${hostname}/hardware-configuration.nix ../hosts/${hostname}/hardware-configuration.nix
../hosts/${hostname}/configuration.nix ../hosts/${hostname}/configuration.nix
@ -36,7 +36,7 @@ rec {
name = "${user}${hostStr}"; name = "${user}${hostStr}";
value = inputs.home-manager.lib.homeManagerConfiguration { value = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."${system}"; pkgs = nixpkgs.legacyPackages."${system}";
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs lib; };
modules = [ modules = [
../hosts/${configHost}/home.nix ../hosts/${configHost}/home.nix