2024-01-13 00:57:02 +01:00
|
|
|
{ pkgs ? import <nixpkgs> { }, enableBig ? true }:
|
2018-12-11 00:51:48 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2020-01-16 23:41:14 +01:00
|
|
|
lib = import ../modules/lib/stdlib-extended.nix pkgs.lib;
|
|
|
|
|
2024-01-18 23:05:35 +01:00
|
|
|
nmtSrc = fetchTarball {
|
|
|
|
url = "https://git.sr.ht/~rycee/nmt/archive/v0.5.1.tar.gz";
|
|
|
|
sha256 = "0qhn7nnwdwzh910ss78ga2d00v42b0lspfd7ybl61mpfgz3lmdcj";
|
|
|
|
};
|
|
|
|
|
2020-01-26 12:00:03 +01:00
|
|
|
modules = import ../modules/modules.nix {
|
|
|
|
inherit lib pkgs;
|
|
|
|
check = false;
|
2024-01-13 00:57:02 +01:00
|
|
|
} ++ [{
|
|
|
|
# Bypass <nixpkgs> reference inside modules/modules.nix to make the test
|
|
|
|
# suite more pure.
|
|
|
|
_module.args.pkgsPath = pkgs.path;
|
2022-06-14 18:38:44 +02:00
|
|
|
|
2024-01-13 00:57:02 +01: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";
|
|
|
|
homeDirectory = "/home/hm-user";
|
|
|
|
stateVersion = lib.mkDefault "18.09";
|
|
|
|
};
|
2020-06-12 21:59:51 +02:00
|
|
|
|
2024-01-13 00:57:02 +01:00
|
|
|
# Avoid including documentation since this will cause
|
|
|
|
# unnecessary rebuilds of the tests.
|
|
|
|
manual.manpages.enable = lib.mkDefault false;
|
2020-12-30 17:20:47 +01:00
|
|
|
|
2024-01-13 00:57:02 +01:00
|
|
|
imports = [ ./asserts.nix ./big-test.nix ./stubs.nix ];
|
2022-01-02 10:22:50 +01:00
|
|
|
|
2024-01-13 00:57:02 +01:00
|
|
|
test.enableBig = enableBig;
|
|
|
|
}];
|
2020-01-16 23:41:14 +01:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
|
|
|
|
isLinux = pkgs.stdenv.hostPlatform.isLinux;
|
|
|
|
|
2024-01-18 23:05:35 +01:00
|
|
|
in import nmtSrc {
|
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)) { } ([
|
2022-11-21 23:05:02 +01:00
|
|
|
./lib/generators
|
2020-01-26 12:00:03 +01:00
|
|
|
./lib/types
|
|
|
|
./modules/files
|
|
|
|
./modules/home-environment
|
|
|
|
./modules/misc/fontconfig
|
2023-06-29 05:07:31 +02:00
|
|
|
./modules/misc/manual
|
2022-03-18 03:47:32 +01:00
|
|
|
./modules/misc/nix
|
2023-06-13 08:44:30 +02:00
|
|
|
./modules/misc/specialisation
|
2022-08-11 23:08:28 +02:00
|
|
|
./modules/programs/aerc
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/alacritty
|
2022-01-25 22:47:27 +01:00
|
|
|
./modules/programs/alot
|
2023-06-15 14:52:33 +02:00
|
|
|
./modules/programs/antidote
|
2020-04-28 20:38:41 +02:00
|
|
|
./modules/programs/aria2
|
2021-10-05 23:05:22 +02:00
|
|
|
./modules/programs/atuin
|
2020-09-18 15:07:40 +02:00
|
|
|
./modules/programs/autojump
|
2023-08-20 10:38:49 +02:00
|
|
|
./modules/programs/bacon
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/bash
|
2021-08-12 21:24:19 +02:00
|
|
|
./modules/programs/bat
|
2021-09-13 03:09:31 +02:00
|
|
|
./modules/programs/bottom
|
2021-08-31 18:52:20 +02:00
|
|
|
./modules/programs/broot
|
2023-06-12 11:29:59 +02:00
|
|
|
./modules/programs/browserpass
|
2022-08-17 18:16:01 +02:00
|
|
|
./modules/programs/btop
|
2023-09-03 12:09:45 +02:00
|
|
|
./modules/programs/carapace
|
2023-06-16 21:38:29 +02:00
|
|
|
./modules/programs/cava
|
2023-04-14 23:41:51 +02:00
|
|
|
./modules/programs/comodoro
|
2023-03-27 20:25:17 +02:00
|
|
|
./modules/programs/darcs
|
2020-05-06 18:23:40 +02:00
|
|
|
./modules/programs/dircolors
|
2020-06-01 10:08:33 +02:00
|
|
|
./modules/programs/direnv
|
2022-01-02 10:22:50 +01:00
|
|
|
./modules/programs/emacs
|
2020-09-27 14:20:19 +02:00
|
|
|
./modules/programs/feh
|
2019-09-30 09:11:36 +02:00
|
|
|
./modules/programs/fish
|
2022-07-09 06:20:00 +02:00
|
|
|
./modules/programs/gallery-dl
|
2020-10-15 22:25:47 +02:00
|
|
|
./modules/programs/gh
|
2023-07-05 19:56:25 +02:00
|
|
|
./modules/programs/gh-dash
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/git
|
2023-09-19 08:03:34 +02:00
|
|
|
./modules/programs/git-cliff
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/gpg
|
2023-11-15 19:56:39 +01:00
|
|
|
./modules/programs/gradle
|
2023-10-24 15:49:09 +02:00
|
|
|
./modules/programs/granted
|
2022-01-04 00:09:24 +01:00
|
|
|
./modules/programs/helix
|
2021-06-27 00:29:42 +02:00
|
|
|
./modules/programs/himalaya
|
2021-05-19 01:36:08 +02:00
|
|
|
./modules/programs/htop
|
2022-08-01 17:03:41 +02:00
|
|
|
./modules/programs/hyfetch
|
2020-05-01 05:49:20 +02:00
|
|
|
./modules/programs/i3status
|
2021-10-30 20:40:49 +02:00
|
|
|
./modules/programs/irssi
|
2023-01-27 22:15:17 +01:00
|
|
|
./modules/programs/jujutsu
|
2022-10-23 21:22:14 +02:00
|
|
|
./modules/programs/k9s
|
2020-04-16 13:36:21 +02:00
|
|
|
./modules/programs/kakoune
|
2023-07-04 12:14:47 +02:00
|
|
|
./modules/programs/khal
|
2023-07-03 22:06:38 +02:00
|
|
|
./modules/programs/khard
|
2023-09-19 08:03:34 +02:00
|
|
|
./modules/programs/kitty
|
2023-05-11 11:20:49 +02:00
|
|
|
./modules/programs/ledger
|
2021-11-11 11:32:48 +01:00
|
|
|
./modules/programs/less
|
2020-04-18 20:22:09 +02:00
|
|
|
./modules/programs/lf
|
2023-09-22 08:38:30 +02:00
|
|
|
./modules/programs/lsd
|
2022-01-25 22:47:27 +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
|
2022-05-29 18:53:49 +02:00
|
|
|
./modules/programs/micro
|
2024-01-21 08:51:14 +01:00
|
|
|
./modules/programs/mise
|
2021-01-22 00:10:12 +01:00
|
|
|
./modules/programs/mpv
|
2022-02-22 04:24:27 +01:00
|
|
|
./modules/programs/mu
|
2022-05-12 07:11:22 +02:00
|
|
|
./modules/programs/mujmap
|
2020-08-26 21:20:54 +02:00
|
|
|
./modules/programs/ncmpcpp
|
2020-06-16 03:47:58 +02:00
|
|
|
./modules/programs/ne
|
2022-01-25 22:47:27 +01:00
|
|
|
./modules/programs/neomutt
|
2023-04-22 23:33:06 +02:00
|
|
|
./modules/programs/neovim
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/newsboat
|
2022-08-17 13:58:46 +02:00
|
|
|
./modules/programs/nheko
|
2021-05-10 00:13:10 +02:00
|
|
|
./modules/programs/nix-index
|
2021-10-06 01:14:52 +02:00
|
|
|
./modules/programs/nnn
|
2020-07-24 17:15:55 +02:00
|
|
|
./modules/programs/nushell
|
2022-09-29 13:08:53 +02:00
|
|
|
./modules/programs/oh-my-posh
|
2023-11-15 23:25:44 +01:00
|
|
|
./modules/programs/openstackclient
|
2022-01-01 20:51:06 +01:00
|
|
|
./modules/programs/pandoc
|
2023-01-27 05:20:00 +01:00
|
|
|
./modules/programs/papis
|
2021-04-20 22:16:27 +02:00
|
|
|
./modules/programs/pet
|
2022-03-28 17:19:38 +02:00
|
|
|
./modules/programs/pistol
|
2022-09-30 18:53:39 +02:00
|
|
|
./modules/programs/pls
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/programs/powerline-go
|
2022-02-02 09:55:08 +01:00
|
|
|
./modules/programs/pubs
|
2023-07-07 14:40:34 +02:00
|
|
|
./modules/programs/pyenv
|
2023-08-12 22:07:04 +02:00
|
|
|
./modules/programs/qcal
|
2020-04-07 09:10:07 +02:00
|
|
|
./modules/programs/qutebrowser
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/readline
|
2023-09-18 22:42:22 +02:00
|
|
|
./modules/programs/rio
|
2023-06-02 17:59:12 +02:00
|
|
|
./modules/programs/ripgrep
|
2023-11-15 18:30:33 +01:00
|
|
|
./modules/programs/ruff
|
2021-12-30 12:47:44 +01:00
|
|
|
./modules/programs/sagemath
|
2023-05-08 19:40:07 +02:00
|
|
|
./modules/programs/sapling
|
2021-01-30 03:29:23 +01:00
|
|
|
./modules/programs/sbt
|
2021-04-23 04:27:29 +02:00
|
|
|
./modules/programs/scmpuff
|
2023-11-06 20:05:51 +01:00
|
|
|
./modules/programs/sftpman
|
2022-10-01 16:42:51 +02:00
|
|
|
./modules/programs/sioyek
|
2021-07-11 19:28:56 +02:00
|
|
|
./modules/programs/sm64ex
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/ssh
|
2020-02-29 22:17:47 +01:00
|
|
|
./modules/programs/starship
|
2021-11-24 03:33:03 +01:00
|
|
|
./modules/programs/taskwarrior
|
2024-01-24 08:21:24 +01:00
|
|
|
./modules/programs/tealdeer
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/texlive
|
2023-10-01 16:41:55 +02:00
|
|
|
./modules/programs/thefuck
|
2022-09-21 22:59:50 +02:00
|
|
|
./modules/programs/tmate
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/tmux
|
2021-04-29 01:56:58 +02:00
|
|
|
./modules/programs/topgrade
|
2023-05-11 11:21:18 +02:00
|
|
|
./modules/programs/translate-shell
|
2023-02-09 10:37:26 +01:00
|
|
|
./modules/programs/vim-vint
|
2020-06-22 20:48:22 +02:00
|
|
|
./modules/programs/vscode
|
2022-01-02 00:22:05 +01:00
|
|
|
./modules/programs/watson
|
2022-04-08 08:48:27 +02:00
|
|
|
./modules/programs/wezterm
|
2023-08-27 20:47:47 +02:00
|
|
|
./modules/programs/yazi
|
2023-05-11 21:25:46 +02:00
|
|
|
./modules/programs/zellij
|
2020-03-20 11:02:58 +01:00
|
|
|
./modules/programs/zplug
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/zsh
|
2023-09-19 08:03:34 +02:00
|
|
|
./modules/services/syncthing/common
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/xresources
|
2021-09-26 11:08:45 +02:00
|
|
|
] ++ lib.optionals isDarwin [
|
2021-11-21 17:13:30 +01:00
|
|
|
./modules/launchd
|
2023-07-21 03:10:17 +02:00
|
|
|
./modules/services/git-sync-darwin
|
2023-07-09 09:34:18 +02:00
|
|
|
./modules/services/imapnotify-darwin
|
2024-01-28 05:11:23 +01:00
|
|
|
./modules/services/nix-gc-darwin
|
2020-08-28 15:42:05 +02:00
|
|
|
./modules/targets-darwin
|
2021-09-26 11:08:45 +02:00
|
|
|
] ++ lib.optionals isLinux [
|
2021-01-23 15:56:38 +01:00
|
|
|
./modules/config/i18n
|
2021-06-16 00:59:25 +02:00
|
|
|
./modules/i18n/input-method
|
2022-01-02 10:22:50 +01:00
|
|
|
./modules/misc/debug
|
2022-09-06 15:50:36 +02:00
|
|
|
./modules/misc/editorconfig
|
2021-04-30 08:56:01 +02:00
|
|
|
./modules/misc/gtk
|
2020-09-18 17:20:45 +02:00
|
|
|
./modules/misc/numlock
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/misc/pam
|
2021-03-04 04:20:17 +01:00
|
|
|
./modules/misc/qt
|
2020-01-26 12:00:03 +01:00
|
|
|
./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
|
2023-09-29 13:04:57 +02:00
|
|
|
./modules/programs/awscli
|
2024-01-13 00:57:02 +01:00
|
|
|
./modules/programs/beets # One test relies on services.mpd
|
2023-11-29 08:23:23 +01:00
|
|
|
./modules/programs/bemenu
|
2022-09-25 19:27:04 +02:00
|
|
|
./modules/programs/borgmatic
|
2023-06-09 22:32:11 +02:00
|
|
|
./modules/programs/boxxy
|
2022-01-02 10:22:50 +01:00
|
|
|
./modules/programs/firefox
|
2021-05-14 22:42:00 +02:00
|
|
|
./modules/programs/foot
|
2023-03-01 15:57:55 +01:00
|
|
|
./modules/programs/fuzzel
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/getmail
|
2021-06-15 23:39:56 +02:00
|
|
|
./modules/programs/gnome-terminal
|
2021-02-09 12:59:11 +01:00
|
|
|
./modules/programs/hexchat
|
2023-11-14 01:10:38 +01:00
|
|
|
./modules/programs/i3blocks
|
2020-09-02 04:37:42 +02:00
|
|
|
./modules/programs/i3status-rust
|
2023-06-07 14:51:05 +02:00
|
|
|
./modules/programs/imv
|
2021-10-21 16:40:36 +02:00
|
|
|
./modules/programs/kodi
|
2022-10-09 20:11:59 +02:00
|
|
|
./modules/programs/looking-glass-client
|
2021-06-12 09:55:58 +02:00
|
|
|
./modules/programs/mangohud
|
2020-08-26 21:20:54 +02:00
|
|
|
./modules/programs/ncmpcpp-linux
|
2023-08-16 22:38:03 +02:00
|
|
|
./modules/programs/pqiv
|
2021-06-06 02:09:02 +02:00
|
|
|
./modules/programs/rbw
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/programs/rofi
|
2020-08-03 10:38:22 +02:00
|
|
|
./modules/programs/rofi-pass
|
2022-06-07 21:01:14 +02:00
|
|
|
./modules/programs/swaylock
|
2023-11-06 18:05:18 +01:00
|
|
|
./modules/programs/swayr
|
2021-06-17 17:06:47 +02:00
|
|
|
./modules/programs/terminator
|
2022-09-21 18:03:17 +02:00
|
|
|
./modules/programs/thunderbird
|
2020-07-29 22:29:51 +02:00
|
|
|
./modules/programs/waybar
|
2023-01-31 17:06:18 +01:00
|
|
|
./modules/programs/wlogout
|
2023-04-20 08:11:30 +02:00
|
|
|
./modules/programs/wofi
|
2023-09-28 04:47:55 +02:00
|
|
|
./modules/programs/wpaperd
|
2021-06-29 21:02:43 +02:00
|
|
|
./modules/programs/xmobar
|
2022-09-09 09:56:07 +02:00
|
|
|
./modules/programs/yt-dlp
|
2023-04-13 15:29:15 +02:00
|
|
|
./modules/services/avizo
|
2021-04-29 02:48:05 +02:00
|
|
|
./modules/services/barrier
|
2022-09-25 19:27:04 +02:00
|
|
|
./modules/services/borgmatic
|
2022-10-27 19:08:14 +02:00
|
|
|
./modules/services/cachix-agent
|
2023-10-15 14:03:18 +02:00
|
|
|
./modules/services/cliphist
|
2022-08-27 20:52:41 +02:00
|
|
|
./modules/services/clipman
|
2023-04-14 23:41:51 +02:00
|
|
|
./modules/services/comodoro
|
2023-06-21 08:48:09 +02:00
|
|
|
./modules/services/darkman
|
2021-07-05 22:29:34 +02:00
|
|
|
./modules/services/devilspie2
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/services/dropbox
|
|
|
|
./modules/services/emacs
|
2021-10-25 00:27:41 +02:00
|
|
|
./modules/services/espanso
|
2021-10-11 21:41:49 +02:00
|
|
|
./modules/services/flameshot
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/services/fluidsynth
|
2021-08-10 06:21:03 +02:00
|
|
|
./modules/services/fnott
|
2022-02-16 17:09:46 +01:00
|
|
|
./modules/services/fusuma
|
2021-07-15 03:20:28 +02:00
|
|
|
./modules/services/git-sync
|
2021-11-25 19:28:18 +01:00
|
|
|
./modules/services/gpg-agent
|
2019-02-24 20:33:56 +01:00
|
|
|
./modules/services/gromit-mpx
|
2021-07-05 22:59:19 +02:00
|
|
|
./modules/services/home-manager-auto-upgrade
|
2023-07-09 09:34:18 +02:00
|
|
|
./modules/services/imapnotify
|
2020-04-12 15:42:43 +02:00
|
|
|
./modules/services/kanshi
|
2020-10-22 21:25:09 +02:00
|
|
|
./modules/services/lieer
|
2022-01-21 14:22:52 +01:00
|
|
|
./modules/services/mopidy
|
2022-03-04 00:43:40 +01:00
|
|
|
./modules/services/mpd
|
2022-12-27 18:15:51 +01:00
|
|
|
./modules/services/mpd-mpris
|
2023-09-19 08:03:34 +02:00
|
|
|
./modules/services/mpdris2
|
2024-01-28 05:11:23 +01:00
|
|
|
./modules/services/nix-gc
|
2023-12-26 15:56:40 +01:00
|
|
|
./modules/services/osmscout-server
|
2021-06-07 23:38:42 +02:00
|
|
|
./modules/services/pantalaimon
|
2022-12-28 22:16:14 +01:00
|
|
|
./modules/services/parcellite
|
2022-05-07 20:05:10 +02:00
|
|
|
./modules/services/pass-secret-service
|
2023-09-18 14:20:32 +02:00
|
|
|
./modules/services/pasystray
|
2020-12-03 03:55:37 +01:00
|
|
|
./modules/services/pbgopy
|
2022-04-11 13:32:21 +02:00
|
|
|
./modules/services/picom
|
2021-01-30 18:20:36 +01:00
|
|
|
./modules/services/playerctld
|
2020-03-02 22:31:15 +01:00
|
|
|
./modules/services/polybar
|
2022-02-07 11:54:09 +01:00
|
|
|
./modules/services/recoll
|
2021-04-30 08:56:01 +02:00
|
|
|
./modules/services/redshift-gammastep
|
2021-10-05 18:58:25 +02:00
|
|
|
./modules/services/screen-locker
|
2023-11-11 22:49:58 +01:00
|
|
|
./modules/services/signaturepdf
|
2022-01-03 20:03:20 +01:00
|
|
|
./modules/services/swayidle
|
2023-07-07 10:15:43 +02:00
|
|
|
./modules/services/swayosd
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/services/sxhkd
|
2023-02-08 17:59:38 +01:00
|
|
|
./modules/services/syncthing/linux
|
2021-07-21 22:43:18 +02:00
|
|
|
./modules/services/trayer
|
2021-10-24 15:50:13 +02:00
|
|
|
./modules/services/twmn
|
2022-08-22 17:01:54 +02:00
|
|
|
./modules/services/udiskie
|
2021-06-20 00:40:17 +02:00
|
|
|
./modules/services/window-managers/bspwm
|
2021-11-09 23:17:36 +01:00
|
|
|
./modules/services/window-managers/herbstluftwm
|
2023-04-03 19:39:13 +02:00
|
|
|
./modules/services/window-managers/hyprland
|
2020-01-26 12:00:03 +01:00
|
|
|
./modules/services/window-managers/i3
|
2023-08-11 11:09:54 +02:00
|
|
|
./modules/services/window-managers/river
|
2022-07-08 19:31:25 +02:00
|
|
|
./modules/services/window-managers/spectrwm
|
2020-05-11 23:56:40 +02:00
|
|
|
./modules/services/window-managers/sway
|
2020-11-28 01:47:35 +01:00
|
|
|
./modules/services/wlsunset
|
2024-01-28 10:46:09 +01:00
|
|
|
./modules/services/wob
|
2021-09-30 05:56:05 +02:00
|
|
|
./modules/services/xsettingsd
|
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
|
|
|
}
|