2018-12-10 23:51:48 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2020-01-16 22:41:14 +00:00
|
|
|
lib = import ../modules/lib/stdlib-extended.nix pkgs.lib;
|
|
|
|
|
2018-12-10 23:51:48 +00:00
|
|
|
nmt = pkgs.fetchFromGitLab {
|
|
|
|
owner = "rycee";
|
|
|
|
repo = "nmt";
|
2020-04-24 19:45:04 +00:00
|
|
|
rev = "8e130d655ec396ce165763c95bbf4ac429810ca8";
|
|
|
|
sha256 = "1jbljr06kg1ycdn24hj8xap16axq11rhb6hm4949fz48n57pwwps";
|
2018-12-10 23:51:48 +00:00
|
|
|
};
|
|
|
|
|
2020-01-26 11:00:03 +00:00
|
|
|
modules = import ../modules/modules.nix {
|
|
|
|
inherit lib pkgs;
|
|
|
|
check = false;
|
2020-04-24 19:41:22 +00:00
|
|
|
} ++ [
|
|
|
|
# Fix impurities. Without these some of the user's environment
|
|
|
|
# will leak into the tests through `builtins.getEnv`.
|
|
|
|
{
|
|
|
|
xdg.enable = true;
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
|
|
|
}
|
|
|
|
];
|
2020-01-16 22:41:14 +00:00
|
|
|
|
2018-12-10 23:51:48 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
import nmt {
|
2020-01-16 22:41:14 +00:00
|
|
|
inherit lib pkgs modules;
|
2018-12-10 23:51:48 +00:00
|
|
|
testedAttrPath = [ "home" "activationPackage" ];
|
2020-01-26 11:00:03 +00:00
|
|
|
tests = builtins.foldl' (a: b: a // (import b)) { } ([
|
|
|
|
./lib/types
|
|
|
|
./modules/files
|
|
|
|
./modules/home-environment
|
|
|
|
./modules/misc/fontconfig
|
|
|
|
./modules/programs/alacritty
|
|
|
|
./modules/programs/bash
|
|
|
|
./modules/programs/browserpass
|
2019-09-30 07:11:36 +00:00
|
|
|
./modules/programs/fish
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/git
|
|
|
|
./modules/programs/gpg
|
2020-04-16 11:36:21 +00:00
|
|
|
./modules/programs/kakoune
|
2020-04-18 18:22:09 +00:00
|
|
|
./modules/programs/lf
|
2020-02-21 07:19:30 +00:00
|
|
|
./modules/programs/lieer
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/mbsync
|
|
|
|
./modules/programs/neomutt
|
|
|
|
./modules/programs/newsboat
|
2020-04-07 07:10:07 +00:00
|
|
|
./modules/programs/qutebrowser
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/readline
|
|
|
|
./modules/programs/ssh
|
2020-02-29 21:17:47 +00:00
|
|
|
./modules/programs/starship
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/texlive
|
|
|
|
./modules/programs/tmux
|
|
|
|
./modules/programs/zsh
|
|
|
|
./modules/xresources
|
|
|
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
2020-02-21 18:11:58 +00:00
|
|
|
./modules/misc/debug
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/misc/pam
|
|
|
|
./modules/misc/xdg
|
|
|
|
./modules/misc/xsession
|
2020-02-21 18:11:58 +00:00
|
|
|
./modules/programs/abook
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/firefox
|
|
|
|
./modules/programs/getmail
|
2020-02-21 07:30:59 +00:00
|
|
|
./modules/services/lieer
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/rofi
|
2020-03-02 21:31:15 +00:00
|
|
|
./modules/services/polybar
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/services/sxhkd
|
|
|
|
./modules/services/window-managers/i3
|
|
|
|
./modules/systemd
|
2020-04-05 14:46:55 +00:00
|
|
|
./modules/targets
|
2020-01-26 11:00:03 +00:00
|
|
|
]);
|
2018-12-10 23:51:48 +00:00
|
|
|
}
|