per-user module: symlinkJoin -> buildEnv
Refs https://github.com/NixOS/nixpkgs/pull/31283
This commit is contained in:
parent
ae4cb860ea
commit
9c8680981f
@ -17,9 +17,12 @@ in {
|
|||||||
environment = {
|
environment = {
|
||||||
etc = flip mapAttrs' cfg (name: { packages, ... }: {
|
etc = flip mapAttrs' cfg (name: { packages, ... }: {
|
||||||
name = "per-user/${name}";
|
name = "per-user/${name}";
|
||||||
value.source = pkgs.symlinkJoin {
|
value.source = pkgs.buildEnv {
|
||||||
name = "per-user.${name}";
|
name = "per-user.${name}";
|
||||||
paths = packages;
|
paths = packages;
|
||||||
|
pathsToLink = [
|
||||||
|
"/bin"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
profiles = ["/etc/per-user/$LOGNAME"];
|
profiles = ["/etc/per-user/$LOGNAME"];
|
||||||
|
Loading…
Reference in New Issue
Block a user