builders: makePkgs
This commit is contained in:
parent
3872b51902
commit
11f9963090
1 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,13 @@
|
|||
let
|
||||
lib = nixpkgs.lib.extend (import ../lib);
|
||||
|
||||
makePkgs = system: (import nixpkgs {
|
||||
inherit system;
|
||||
|
||||
config.allowUnfree = true;
|
||||
overlays = [ self.overlays.default ];
|
||||
});
|
||||
|
||||
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
||||
inherit (nixpkgs.lib) nixosSystem;
|
||||
inherit (lib.strings) optionalString;
|
||||
|
@ -14,8 +21,9 @@ rec {
|
|||
nameValuePair
|
||||
hostname
|
||||
(nixosSystem {
|
||||
inherit system;
|
||||
pkgs = makePkgs system;
|
||||
specialArgs = { inherit inputs lib self; };
|
||||
|
||||
modules = [
|
||||
../hosts/${hostname}/hardware-configuration.nix
|
||||
../hosts/${hostname}/configuration.nix
|
||||
|
@ -39,7 +47,7 @@ rec {
|
|||
nameValuePair
|
||||
"${user}${hostStr}"
|
||||
(homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = makePkgs system;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs self;
|
||||
lib = lib.extend (_: _: inputs.home-manager.lib);
|
||||
|
|
Loading…
Reference in a new issue