feat(users/Profpatsch/nix-home): add findia* aliases

Change-Id: I66d3e69ae2cb4cf56a49c970f59f62fa945dd736
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4840
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2022-01-09 17:08:13 +01:00
parent 723c21ddb6
commit baecea1cbe
2 changed files with 101 additions and 6 deletions

View file

@ -129,18 +129,38 @@ let
"\${out}/\${stowPackage}"
]);
# this is a dumb way of generating a pure list of packages from a depot namespace.
readTreeNamespaceDrvs = namespace:
lib.pipe namespace [
(lib.filterAttrs (_: v: lib.isDerivation v))
(lib.mapAttrsToList (k: v: {
name = k;
drv = v;
}))
];
in
# TODO: temp setup
lib.pipe { } [
(_: makeStowDir [{
stowPackage = "scripts";
originalDir = pkgs.linkFarm "scripts-farm" [
{
name = "scripts/ytextr";
path = depot.users.Profpatsch.ytextr;
}
];
originalDir = pkgs.linkFarm "scripts-farm"
([
{
name = "scripts/ytextr";
path = depot.users.Profpatsch.ytextr;
}
]
++
(lib.pipe depot.users.Profpatsch.aliases [
readTreeNamespaceDrvs
(map ({ name, drv }: {
name = "scripts/${name}";
path = drv;
}))
]));
}])
(d: runStow {
stowDir = d;