feat: add onefetch and pre-commit to all shells

This commit is contained in:
Malte Tammena 2024-02-16 11:52:16 +01:00
parent 6a6bf622ef
commit 5c89e03000

View file

@ -48,6 +48,7 @@
packagesSharedByAll = with pkgs; [
diff-so-fancy
pre-commit
];
scripts = {
@ -141,6 +142,10 @@
(pkgs.lib.attrsets.mapAttrs (name: value:
pkgs.mkShell (pkgs.lib.recursiveUpdate value {
packages = value.packages ++ packagesSharedByAll;
shellHook = ''
echo -e 1>&2 "\n\n Welcome to the development shell!\n\n"
${pkgs.onefetch}/bin/onefetch
'';
}))
shells)
// {
@ -149,6 +154,7 @@
shellHook = ''
echo -e 1>&2 "\n\n Welcome to the development shell!\n\n"
${config.pre-commit.installationScript}
${pkgs.onefetch}/bin/onefetch
'';
});
};