use the same nixpkgs and home-manager

Co-authored-by: Tobias Happ <Gerschtli@users.noreply.github.com>
This commit is contained in:
Bruno Bigras 2021-01-13 09:57:57 -05:00 committed by Alexander Sosedkin
parent 2fba450df0
commit abf7f56cb6
3 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
{ pkgs ? import <nixpkgs> { }, config ? null }:
{ pkgs ? import <nixpkgs> { }, home-manager ? import <home-manager> { }, config ? null }:
with pkgs.lib;
@ -16,10 +16,11 @@ let
rawModule = evalModules {
modules = [
{
_module.args.home-manager = home-manager;
_module.args.pkgs = mkDefault pkgs;
}
configModule
] ++ import ./module-list.nix;
] ++ import ./module-list.nix { inherit pkgs; };
};
failedAssertions = map (x: x.message) (filter (x: !x.assertion) rawModule.config.assertions);