mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
13 lines
468 B
Nix
13 lines
468 B
Nix
{ name, homeConfig, writeShellApplication, fzf, ... }:
|
|
|
|
writeShellApplication {
|
|
inherit name;
|
|
runtimeInputs = [ fzf ];
|
|
text = ''
|
|
DOCUMENT_DIR_WORK=${homeConfig.systemd.user.sessionVariables.DOCUMENT_DIR_WORK or ""}
|
|
DOCUMENT_DIR_PRIV=${homeConfig.systemd.user.sessionVariables.DOCUMENT_DIR_PRIV}
|
|
FLAKE=${homeConfig.home.sessionVariables.FLAKE}
|
|
|
|
cd "$( (find "$DOCUMENT_DIR_WORK" "$DOCUMENT_DIR_PRIV" -maxdepth 1 && echo "$FLAKE") | fzf )"
|
|
'';
|
|
}
|