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:
commit
04193f188e
1 changed files with 9 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue