1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/tests/default.nix

107 lines
3 KiB
Nix
Raw Normal View History

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