home-manager/tests/default.nix

27 lines
807 B
Nix
Raw Normal View History

2018-12-11 00:51:48 +01:00
{ pkgs ? import <nixpkgs> {} }:
let
nmt = pkgs.fetchFromGitLab {
owner = "rycee";
repo = "nmt";
2019-01-14 22:48:59 +01:00
rev = "2ed3897e22ee0e1d343ba2c33122d57d888dedfe";
sha256 = "1k4qapinsvrf40ccpva6rfp11b90h413xrf5h57v84m88fcgac7n";
2018-12-11 00:51:48 +01:00
};
in
import nmt {
inherit pkgs;
modules = import ../modules/modules.nix { inherit pkgs; lib = pkgs.lib; };
testedAttrPath = [ "home" "activationPackage" ];
tests = {
"git/with-most-options" = ./modules/programs/git.nix;
"git/with-str-extra-config" = ./modules/programs/git-with-str-extra-config.nix;
texlive-minimal = ./modules/programs/texlive-minimal.nix;
2018-12-11 00:51:48 +01:00
xresources = ./modules/xresources.nix;
2019-01-14 22:50:11 +01:00
} // pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
"i3/keybindings" = ./modules/services/window-managers/i3-keybindings.nix;
2018-12-11 00:51:48 +01:00
};
}