2021-01-29 16:43:49 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}, enableBig ? true }:
|
2018-12-10 23:51:48 +00:00
|
|
|
|
|
|
|
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";
|
2021-06-27 12:20:13 +00:00
|
|
|
rev = "89924d8e6e0fcf866a11324d32c6bcaa89cda506";
|
|
|
|
sha256 = "02wzrbmpdpgig58a1rhz8sb0p2rvbapnlcmhi4d4bi8w9md6pmdl";
|
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
|
|
|
} ++ [
|
|
|
|
{
|
2020-06-12 19:59:51 +00:00
|
|
|
# Fix impurities. Without these some of the user's environment
|
|
|
|
# will leak into the tests through `builtins.getEnv`.
|
2020-04-24 19:41:22 +00:00
|
|
|
xdg.enable = true;
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
2020-06-12 19:59:51 +00:00
|
|
|
|
|
|
|
# Avoid including documentation since this will cause
|
|
|
|
# unnecessary rebuilds of the tests.
|
|
|
|
manual.manpages.enable = false;
|
2020-12-30 16:20:47 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
imports = [ ./asserts.nix ./stubs.nix ];
|
2020-04-24 19:41:22 +00:00
|
|
|
}
|
|
|
|
];
|
2020-01-16 22:41:14 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
|
|
|
|
isLinux = pkgs.stdenv.hostPlatform.isLinux;
|
|
|
|
|
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
|
2019-08-21 07:38:52 +00:00
|
|
|
./modules/programs/alot
|
2020-04-28 18:38:41 +00:00
|
|
|
./modules/programs/aria2
|
2020-09-18 13:07:40 +00:00
|
|
|
./modules/programs/autojump
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/bash
|
2021-08-12 19:24:19 +00:00
|
|
|
./modules/programs/bat
|
2021-09-13 01:09:31 +00:00
|
|
|
./modules/programs/bottom
|
2021-08-31 16:52:20 +00:00
|
|
|
./modules/programs/broot
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/browserpass
|
2020-05-06 16:23:40 +00:00
|
|
|
./modules/programs/dircolors
|
2020-06-01 08:08:33 +00:00
|
|
|
./modules/programs/direnv
|
2020-09-27 12:20:19 +00:00
|
|
|
./modules/programs/feh
|
2019-09-30 07:11:36 +00:00
|
|
|
./modules/programs/fish
|
2020-10-15 20:25:47 +00:00
|
|
|
./modules/programs/gh
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/git
|
|
|
|
./modules/programs/gpg
|
2021-06-26 22:29:42 +00:00
|
|
|
./modules/programs/himalaya
|
2021-05-18 23:36:08 +00:00
|
|
|
./modules/programs/htop
|
2020-05-01 03:49:20 +00:00
|
|
|
./modules/programs/i3status
|
2021-06-06 21:31:25 +00:00
|
|
|
./modules/programs/irsii
|
2020-04-16 11:36:21 +00:00
|
|
|
./modules/programs/kakoune
|
2021-04-07 14:18:09 +00:00
|
|
|
./modules/programs/kitty
|
2020-04-18 18:22:09 +00:00
|
|
|
./modules/programs/lf
|
2020-02-21 07:19:30 +00:00
|
|
|
./modules/programs/lieer
|
2020-09-09 06:50:32 +00:00
|
|
|
./modules/programs/man
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/mbsync
|
2021-01-21 23:10:12 +00:00
|
|
|
./modules/programs/mpv
|
2020-08-26 19:20:54 +00:00
|
|
|
./modules/programs/ncmpcpp
|
2020-06-16 01:47:58 +00:00
|
|
|
./modules/programs/ne
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/neomutt
|
|
|
|
./modules/programs/newsboat
|
2021-05-09 22:13:10 +00:00
|
|
|
./modules/programs/nix-index
|
2020-07-24 15:15:55 +00:00
|
|
|
./modules/programs/nushell
|
2021-04-20 20:16:27 +00:00
|
|
|
./modules/programs/pet
|
2020-10-22 19:25:09 +00:00
|
|
|
./modules/programs/powerline-go
|
2020-04-07 07:10:07 +00:00
|
|
|
./modules/programs/qutebrowser
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/readline
|
2021-01-30 02:29:23 +00:00
|
|
|
./modules/programs/sbt
|
2021-04-23 02:27:29 +00:00
|
|
|
./modules/programs/scmpuff
|
2021-07-11 17:28:56 +00:00
|
|
|
./modules/programs/sm64ex
|
2020-01-26 11:00:03 +00:00
|
|
|
./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
|
2021-04-28 23:56:58 +00:00
|
|
|
./modules/programs/topgrade
|
2020-06-22 18:48:22 +00:00
|
|
|
./modules/programs/vscode
|
2020-03-20 10:02:58 +00:00
|
|
|
./modules/programs/zplug
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/zsh
|
|
|
|
./modules/xresources
|
2021-09-26 09:08:45 +00:00
|
|
|
] ++ lib.optionals isDarwin [
|
2020-08-28 13:42:05 +00:00
|
|
|
./modules/targets-darwin
|
2021-09-26 09:08:45 +00:00
|
|
|
] ++ lib.optionals isLinux [
|
2021-01-23 14:56:38 +00:00
|
|
|
./modules/config/i18n
|
2021-06-15 22:59:25 +00:00
|
|
|
./modules/i18n/input-method
|
2021-04-30 06:56:01 +00:00
|
|
|
./modules/misc/gtk
|
2020-09-18 15:20:45 +00:00
|
|
|
./modules/misc/numlock
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/misc/pam
|
2021-03-04 03:20:17 +00:00
|
|
|
./modules/misc/qt
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/misc/xdg
|
|
|
|
./modules/misc/xsession
|
2020-02-21 18:11:58 +00:00
|
|
|
./modules/programs/abook
|
2020-05-26 12:19:13 +00:00
|
|
|
./modules/programs/autorandr
|
2021-05-14 20:42:00 +00:00
|
|
|
./modules/programs/foot
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/getmail
|
2021-06-15 21:39:56 +00:00
|
|
|
./modules/programs/gnome-terminal
|
2020-09-02 02:37:42 +00:00
|
|
|
./modules/programs/i3status-rust
|
2021-06-12 07:55:58 +00:00
|
|
|
./modules/programs/mangohud
|
2020-08-26 19:20:54 +00:00
|
|
|
./modules/programs/ncmpcpp-linux
|
2020-10-22 19:25:09 +00:00
|
|
|
./modules/programs/neovim # Broken package dependency on Darwin.
|
2021-06-06 00:09:02 +00:00
|
|
|
./modules/programs/rbw
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/programs/rofi
|
2020-08-03 08:38:22 +00:00
|
|
|
./modules/programs/rofi-pass
|
2021-06-17 15:06:47 +00:00
|
|
|
./modules/programs/terminator
|
2020-07-29 20:29:51 +00:00
|
|
|
./modules/programs/waybar
|
2021-06-29 19:02:43 +00:00
|
|
|
./modules/programs/xmobar
|
2021-04-29 00:48:05 +00:00
|
|
|
./modules/services/barrier
|
2021-07-05 20:29:34 +00:00
|
|
|
./modules/services/devilspie2
|
2020-10-22 19:25:09 +00:00
|
|
|
./modules/services/dropbox
|
|
|
|
./modules/services/emacs
|
|
|
|
./modules/services/fluidsynth
|
2021-08-10 04:21:03 +00:00
|
|
|
./modules/services/fnott
|
2021-07-15 01:20:28 +00:00
|
|
|
./modules/services/git-sync
|
2020-04-12 13:42:43 +00:00
|
|
|
./modules/services/kanshi
|
2020-10-22 19:25:09 +00:00
|
|
|
./modules/services/lieer
|
2021-06-07 21:38:42 +00:00
|
|
|
./modules/services/pantalaimon
|
2020-12-03 02:55:37 +00:00
|
|
|
./modules/services/pbgopy
|
2021-01-30 17:20:36 +00:00
|
|
|
./modules/services/playerctld
|
2020-03-02 21:31:15 +00:00
|
|
|
./modules/services/polybar
|
2021-04-30 06:56:01 +00:00
|
|
|
./modules/services/redshift-gammastep
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/services/sxhkd
|
2021-05-18 14:43:17 +00:00
|
|
|
./modules/services/syncthing
|
2021-07-21 20:43:18 +00:00
|
|
|
./modules/services/trayer
|
2021-06-19 22:40:17 +00:00
|
|
|
./modules/services/window-managers/bspwm
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/services/window-managers/i3
|
2020-05-11 21:56:40 +00:00
|
|
|
./modules/services/window-managers/sway
|
2020-11-28 00:47:35 +00:00
|
|
|
./modules/services/wlsunset
|
2021-09-30 03:56:05 +00:00
|
|
|
./modules/services/xsettingsd
|
2020-01-26 11:00:03 +00:00
|
|
|
./modules/systemd
|
2020-08-28 13:42:05 +00:00
|
|
|
./modules/targets-linux
|
2021-01-29 16:43:49 +00:00
|
|
|
] ++ lib.optionals enableBig [
|
|
|
|
./modules/programs/emacs
|
2021-09-26 09:08:45 +00:00
|
|
|
] ++ lib.optionals (enableBig && isLinux) [
|
|
|
|
./modules/misc/debug
|
|
|
|
./modules/programs/firefox
|
2020-01-26 11:00:03 +00:00
|
|
|
]);
|
2018-12-10 23:51:48 +00:00
|
|
|
}
|