1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Merge pull request #1118 from Enzime/push-zvvxxryylwxt

users: ensure users' shells are installed
This commit is contained in:
Emily 2024-10-24 09:05:00 +01:00 committed by GitHub
commit 04193f188e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
{ {
@ -259,6 +265,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 {