aboutsummaryrefslogtreecommitdiff
path: root/tests/nix-profile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nix-profile.sh')
-rw-r--r--tests/nix-profile.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh
new file mode 100644
index 000000000..5530d7737
--- /dev/null
+++ b/tests/nix-profile.sh
@@ -0,0 +1,10 @@
+source common.sh
+
+home=$TEST_ROOT/home
+rm -rf $home
+mkdir -p $home
+HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh"
+HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh" # test idempotency
+
+[ -e $home/.nix-profile ]
+[ -e $home/.nix-channels ]