Merge remote-tracking branch 'origin/nixos' into nixos

dev-docs
Moritz Böhme 2023-04-26 14:30:27 +02:00
commit 56044695df
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
3 changed files with 13 additions and 6 deletions

View File

@ -48,7 +48,6 @@ with lib; {
pavucontrol
stable.libreoffice # HACK to fix build error
stable.signal-desktop
synology-drive-client
texlive.combined.scheme-full
thunderbird
vlc

View File

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, pkgs, ... }:
with lib;
{
@ -57,4 +57,8 @@ with lib;
};
};
};
environment.systemPackages = with pkgs; [
synology-drive-client
];
}

View File

@ -9,15 +9,19 @@ let
runtimeInputs = with pkgs; [ tmux findutils coreutils procps fd ];
text = ''
#!/usr/bin/env bash
options=$(fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf --filter "''$*")
if [[ $# -eq 1 ]]; then
selected=$1
if [[ -z $options ]]; then
exit 1
elif [[ $(wc -l <<< "$options") -eq 1 ]]; then
selected="$options"
else
selected=$(fd -gH '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf)
selected=$(echo "$options" | fzf --query="$*")
fi
if [[ -z $selected ]]; then
exit 0
exit 0
fi
selected_name=$(basename "$selected" | tr . _)