summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-10-28 10:08:11 +1100
committerGitHub <noreply@github.com>2024-10-28 10:08:11 +1100
commit5c0c6aaa797d6ccbb6cdab14de0248135735709d (patch)
tree40c65e8cf0ae6def61b9bd15cfd4aad025b89e72 /modules/system
parent2eb472230a5400c81d9008014888b4bff23bcf44 (diff)
parentfebc3b3f514d1e3d46182975430737d0232e6af0 (diff)
Merge pull request #1120 from Enzime/push-ltvtsllrqvqy
users: update properties for known users
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/activation-scripts.nix1
-rw-r--r--modules/system/shells.nix12
2 files changed, 10 insertions, 3 deletions
diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix
index da8eb5c..5f8916c 100644
--- a/modules/system/activation-scripts.nix
+++ b/modules/system/activation-scripts.nix
@@ -86,6 +86,7 @@ in
exit $_status
'';
+ # FIXME: activationScripts.checks should be system level
system.activationScripts.userScript.text = ''
#! ${stdenv.shell}
set -e
diff --git a/modules/system/shells.nix b/modules/system/shells.nix
index 0b599d9..025936d 100644
--- a/modules/system/shells.nix
+++ b/modules/system/shells.nix
@@ -14,9 +14,15 @@ in
example = literalExpression "[ pkgs.bashInteractive pkgs.zsh ]";
description = ''
A list of permissible login shells for user accounts.
- No need to mention `/bin/sh`
- and other shells that are available by default on
- macOS.
+
+ The default macOS shells will be automatically included:
+ - /bin/bash
+ - /bin/csh
+ - /bin/dash
+ - /bin/ksh
+ - /bin/sh
+ - /bin/tcsh
+ - /bin/zsh
'';
apply = map (v: if types.shellPackage.check v then "/run/current-system/sw${v.shellPath}" else v);
};