2018-12-11 00:51:48 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2020-01-16 23:41:14 +01:00
|
|
|
lib = import ../modules/lib/stdlib-extended.nix pkgs.lib;
|
|
|
|
|
2018-12-11 00:51:48 +01:00
|
|
|
nmt = pkgs.fetchFromGitLab {
|
|
|
|
owner = "rycee";
|
|
|
|
repo = "nmt";
|
2020-11-30 00:05:19 +01:00
|
|
|
rev = "26af5c54c88695ed73be93a9eae6b71f2d76d04a";
|
|
|
|
sha256 = "1m10cwjh63qkz2rgnm0wk16pxh52lp8i9kjfv6cfhbzl5df4q95p";
|
2018-12-11 00:51:48 +01:00
|
|
|
};
|
|
|
|
|
2020-01-26 12:00:03 +01:00
|
|
|
modules = import ../modules/modules.nix {
|
|
|
|
inherit lib pkgs;
|
|
|
|
check = false;
|
2020-04-24 21:41:22 +02:00
|
|
|
} ++ [
|
|
|
|
{
|
2020-06-12 21:59:51 +02:00
|
|
|
# Fix impurities. Without these some of the user's environment
|
|
|
|
# will leak into the tests through `builtins.getEnv`.
|
2020-04-24 21:41:22 +02:00
|
|
|
xdg.enable = true;
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
2020-06-12 21:59:51 +02:00
|
|
|
|
|
|
|
# Avoid including documentation since this will cause
|
|
|
|
# unnecessary rebuilds of the tests.
|
|
|
|
manual.manpages.enable = false;
|
2020-04-24 21:41:22 +02:00
|
|
|
}
|
|
|
|
];
|
2020-01-16 23:41:14 +01:00
|
|
|
|
2018-12-11 00:51:48 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
import nmt {
|
2020-01-16 23:41:14 +01:00
|
|
|
inherit lib pkgs modules;
|
2018-12-11 00:51:48 +01:00
|
|
|
testedAttrPath = [ "home" "activationPackage" ];
|
2020-01-26 12:00:03 +01:00
|
|
|
tests = builtins.foldl' (a: b: a // (import b)) { } ([
|
|
|
|
./lib/types
|
|
|
|
./modules/files
|
|
|
|
./modules/home-environment
|
|
|
|
./modules/misc/fontconfig
|
|
|
|
./modules/programs/alacritty
|
2019-08-21 09:38:52 +02:00
|
|
|
./modules/programs/alot
|
2020-04-28 20:38:41 +02:00
|
|
|
./modules/programs/aria2
|
2020-09-18 15:07:40 +02:00
|
|
|
./modules/programs/autojump
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/bash
|
|
|
|
./modules/programs/browserpass
|
2020-05-06 18:23:40 +02:00
|
|
|
./modules/programs/dircolors
|
2020-06-01 10:08:33 +02:00
|
|
|
./modules/programs/direnv
|
2020-09-27 14:20:19 +02:00
|
|
|
./modules/programs/feh
|
2019-09-30 09:11:36 +02:00
|
|
|
./modules/programs/fish
|
2020-10-15 22:25:47 +02:00
|
|
|
./modules/programs/gh
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/git
|
|
|
|
./modules/programs/gpg
|
2020-05-01 05:49:20 +02:00
|
|
|
./modules/programs/i3status
|
2020-04-16 13:36:21 +02:00
|
|
|
./modules/programs/kakoune
|
2020-04-18 20:22:09 +02:00
|
|
|
./modules/programs/lf
|
2020-02-21 08:19:30 +01:00
|
|
|
./modules/programs/lieer
|
2020-09-09 08:50:32 +02:00
|
|
|
./modules/programs/man
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/mbsync
|
2020-08-26 21:20:54 +02:00
|
|
|
./modules/programs/ncmpcpp
|
2020-06-16 03:47:58 +02:00
|
|
|
./modules/programs/ne
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/neomutt
|
|
|
|
./modules/programs/newsboat
|
2020-07-24 17:15:55 +02:00
|
|
|
./modules/programs/nushell
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/programs/powerline-go
|
2020-04-07 09:10:07 +02:00
|
|
|
./modules/programs/qutebrowser
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/readline
|
|
|
|
./modules/programs/ssh
|
2020-02-29 22:17:47 +01:00
|
|
|
./modules/programs/starship
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/texlive
|
|
|
|
./modules/programs/tmux
|
2020-06-22 20:48:22 +02:00
|
|
|
./modules/programs/vscode
|
2020-03-20 11:02:58 +01:00
|
|
|
./modules/programs/zplug
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/zsh
|
|
|
|
./modules/xresources
|
2020-08-28 15:42:05 +02:00
|
|
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
|
|
|
|
./modules/targets-darwin
|
2020-01-26 12:00:03 +01:00
|
|
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
2020-02-21 19:11:58 +01:00
|
|
|
./modules/misc/debug
|
2020-09-18 17:20:45 +02:00
|
|
|
./modules/misc/numlock
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/misc/pam
|
|
|
|
./modules/misc/xdg
|
|
|
|
./modules/misc/xsession
|
2020-02-21 19:11:58 +01:00
|
|
|
./modules/programs/abook
|
2020-05-26 14:19:13 +02:00
|
|
|
./modules/programs/autorandr
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/firefox
|
|
|
|
./modules/programs/getmail
|
2020-09-02 04:37:42 +02:00
|
|
|
./modules/programs/i3status-rust
|
2020-08-26 21:20:54 +02:00
|
|
|
./modules/programs/ncmpcpp-linux
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/programs/neovim # Broken package dependency on Darwin.
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/rofi
|
2020-07-29 22:29:51 +02:00
|
|
|
./modules/programs/waybar
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/services/dropbox
|
|
|
|
./modules/services/emacs
|
|
|
|
./modules/services/fluidsynth
|
2020-04-12 15:42:43 +02:00
|
|
|
./modules/services/kanshi
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/services/lieer
|
2020-12-03 03:55:37 +01:00
|
|
|
./modules/services/pbgopy
|
2020-03-02 22:31:15 +01:00
|
|
|
./modules/services/polybar
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/services/sxhkd
|
|
|
|
./modules/services/window-managers/i3
|
2020-05-11 23:56:40 +02:00
|
|
|
./modules/services/window-managers/sway
|
2020-11-28 01:47:35 +01:00
|
|
|
./modules/services/wlsunset
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/systemd
|
2020-08-28 15:42:05 +02:00
|
|
|
./modules/targets-linux
|
2020-01-26 12:00:03 +01:00
|
|
|
]);
|
2018-12-11 00:51:48 +01:00
|
|
|
}
|