1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

users: ensure users' shells are installed

This commit is contained in:
Michael Hoang 2024-10-24 14:14:15 +11:00
parent d99f9ae9fd
commit bbe1917238

View file

@ -31,6 +31,12 @@ let
then "/run/current-system/sw${v.shellPath}" then "/run/current-system/sw${v.shellPath}"
else v; else v;
systemShells =
let
shells = mapAttrsToList (_: u: u.shell) cfg.users;
in
filter types.shellPackage.check shells;
in in
{ {
@ -226,6 +232,9 @@ in
'') deletedUsers} '') deletedUsers}
''; '';
# Install all the user shells
environment.systemPackages = systemShells;
environment.etc = mapAttrs' (name: { packages, ... }: { environment.etc = mapAttrs' (name: { packages, ... }: {
name = "profiles/per-user/${name}"; name = "profiles/per-user/${name}";
value.source = pkgs.buildEnv { value.source = pkgs.buildEnv {