modules/shared/community-builder: enable grml on darwin

This commit is contained in:
zowoq 2025-02-23 14:31:33 +10:00
parent 4306a3d687
commit 5571427575
2 changed files with 19 additions and 12 deletions

View file

@ -5,6 +5,16 @@
... ...
}: }:
{ {
grml-zsh-config = prev.grml-zsh-config.overrideAttrs (o: {
patches = (o.patches or [ ]) ++ [
(final.fetchpatch {
name = "use-path_helper-on-macos.patch";
url = "https://github.com/grml/grml-etc-core/commit/4d8fae2d8c5cee771bb4fc70e0a3cb21e1b839fd.patch";
hash = "sha256-0rWFlKaO/85T8/2mYa5P9DOiP5rcPqt9CjTcoLpH5/E=";
revert = true;
})
];
});
hydra = (prev.hydra.override { nix = final.nixVersions.nix_2_24; }).overrideAttrs (o: { hydra = (prev.hydra.override { nix = final.nixVersions.nix_2_24; }).overrideAttrs (o: {
version = inputs.hydra.shortRev; version = inputs.hydra.shortRev;
src = inputs.hydra; src = inputs.hydra;

View file

@ -68,17 +68,14 @@
useBabelfish = true; useBabelfish = true;
}; };
programs.zsh = programs.zsh = {
{ enable = true;
enable = true; # https://grml.org/zsh/grmlzshrc.html
} # https://grml.org/zsh/grml-zsh-refcard.pdf
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { interactiveShellInit = ''
# https://grml.org/zsh/grmlzshrc.html source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
# https://grml.org/zsh/grml-zsh-refcard.pdf '';
interactiveShellInit = '' promptInit = ""; # otherwise it'll override the grml prompt
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc };
'';
promptInit = ""; # otherwise it'll override the grml prompt
};
}; };
} }