summaryrefslogtreecommitdiff
path: root/tests/system-shells.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-12-13 23:05:46 +0100
committerDaiderd Jordan <daiderd@gmail.com>2017-12-13 23:05:46 +0100
commitfa8b71bdf6bf96cf121cde9ed367a93ff0371420 (patch)
treef4bc8b17804dbc59c4c4a88c37445f7dafb48f61 /tests/system-shells.nix
parentba7202e789ed87b4913028bae0a9de03156292c4 (diff)
add test for environment.shells
Diffstat (limited to 'tests/system-shells.nix')
-rw-r--r--tests/system-shells.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/system-shells.nix b/tests/system-shells.nix
new file mode 100644
index 0000000..61708ff
--- /dev/null
+++ b/tests/system-shells.nix
@@ -0,0 +1,10 @@
+{ config, pkgs, ... }:
+
+{
+ environment.shells = [ pkgs.zsh ];
+
+ test = ''
+ echo checking zsh in /etc/shells >&2
+ grep '/run/current-system/sw/bin/zsh' ${config.out}/etc/shells
+ '';
+}