mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
users: ensure users' shells are installed
This commit is contained in:
parent
d99f9ae9fd
commit
bbe1917238
1 changed files with 9 additions and 0 deletions
|
@ -31,6 +31,12 @@ let
|
|||
then "/run/current-system/sw${v.shellPath}"
|
||||
else v;
|
||||
|
||||
systemShells =
|
||||
let
|
||||
shells = mapAttrsToList (_: u: u.shell) cfg.users;
|
||||
in
|
||||
filter types.shellPackage.check shells;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -226,6 +232,9 @@ in
|
|||
'') deletedUsers}
|
||||
'';
|
||||
|
||||
# Install all the user shells
|
||||
environment.systemPackages = systemShells;
|
||||
|
||||
environment.etc = mapAttrs' (name: { packages, ... }: {
|
||||
name = "profiles/per-user/${name}";
|
||||
value.source = pkgs.buildEnv {
|
||||
|
|
Loading…
Reference in a new issue