Compare commits

...

2 Commits

2 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
}; };
config = lib.mkIf config.workstation.enable { config = lib.mkIf config.workstation.enable {
programs.nix-ld.enable = true;
virtualisation.docker = { virtualisation.docker = {
enable = true; enable = true;
logDriver = "json-file"; logDriver = "json-file";

View File

@@ -19,6 +19,20 @@ pkgs.rustPlatform.buildRustPackage {
buildType = "debug"; buildType = "debug";
nativeBuildInputs = [ pkgs.installShellFiles ];
preBuild = ''
mkdir -p completions
'';
SHELL_COMPLETIONS_DIR = "completions";
postInstall = ''
installShellCompletion --bash completions/ahab.bash
installShellCompletion --zsh completions/_ahab
installShellCompletion --fish completions/ahab.fish
'';
meta = { meta = {
description = "ahab"; description = "ahab";
homepage = "https://git.janezic.dev/janezicmatej/ahab"; homepage = "https://git.janezic.dev/janezicmatej/ahab";