per-user module: symlinkJoin -> buildEnv

Refs https://github.com/NixOS/nixpkgs/pull/31283
This commit is contained in:
tv 2017-11-12 09:57:07 +01:00
parent ae4cb860ea
commit 9c8680981f

View File

@ -17,9 +17,12 @@ in {
environment = {
etc = flip mapAttrs' cfg (name: { packages, ... }: {
name = "per-user/${name}";
value.source = pkgs.symlinkJoin {
value.source = pkgs.buildEnv {
name = "per-user.${name}";
paths = packages;
pathsToLink = [
"/bin"
];
};
});
profiles = ["/etc/per-user/$LOGNAME"];