-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: Add a test for the home-manager module #901
Conversation
e4bbb2b
to
f447ee1
Compare
tests/modules/check.sh
Outdated
#!/usr/bin/env -S nix run 'github:clhodapp/nix-runner/7b56158f7ab9fd7806068c6571833210e063df19' -- | ||
#!package nixpkgs#bash | ||
#!package nixpkgs#home-manager | ||
#!command bash | ||
|
||
self=$(realpath "$(dirname "$0")") | ||
|
||
systems=( | ||
"x86_64-linux" | ||
"aarch64-linux" | ||
"x86_64-darwin" | ||
"aarch64-darwin" | ||
) | ||
|
||
failures=() | ||
|
||
ok=true | ||
|
||
echo "=== HOME MANAGER ===" | ||
for system in "${systems[@]}"; do | ||
if ! home-manager --no-write-lock-file build --flake ${self}/home-manager#nixvim-${system}; then | ||
failures+=("home-manager-${system}") | ||
ok=false | ||
fi | ||
done | ||
|
||
if [[ $ok = false ]]; then | ||
echo -e "\nFAILURES: ${failures[@]}" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we make a derivation out of this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried, but was not able because home-manager was not able to find the nix profile directory for the user, which seems coherent as I don't think that in derivations a full nix environement exists
I think that you have to rebase on |
c78ecf1
to
8d1336b
Compare
8d1336b
to
a537fde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing !
No description provided.