mkMachine now uses passed nixpkgs version

This commit is contained in:
Julien Malka 2023-02-03 18:31:33 +01:00
parent 43e56879d7
commit ef07fa6d59
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -1,15 +1,15 @@
inputs: final: prev: inputs: final: prev:
with builtins; with inputs; with builtins;
let let
overlay-unstable = arch: final: prev: { overlay-unstable = arch: final: prev: {
unstable = unstable.legacyPackages."${arch}"; unstable = inputs.unstable.legacyPackages."${arch}";
}; };
in in
{ {
mkMachine = { host, host-config, modules, system ? "x86_64-linux" }: nixpkgs.lib.nixosSystem { mkMachine = { host, host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux" }: nixpkgs.lib.nixosSystem {
lib = final; lib = final;
system = system; system = system;
specialArgs = { specialArgs = {
@ -17,10 +17,10 @@ in
}; };
modules = builtins.attrValues modules ++ [ modules = builtins.attrValues modules ++ [
../base.nix ../base.nix
sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
host-config host-config
home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
simple-nixos-mailserver.nixosModule inputs.simple-nixos-mailserver.nixosModule
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
nixpkgs.overlays = [ nixpkgs.overlays = [