diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index ad9233d..83f182c 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, optionalString, ... }: +{ config, pkgs, lib, ... }: let inherit (pkgs.lib) optionalString; @@ -12,28 +12,6 @@ let exec ${pkgs.zsh}/bin/zsh ''; - - nix_run_fn = '' - function _nr { - if [ "$#" -lt 1 ]; then - echo "Usage: _nr " - return - fi - - quoted_args=() - local pkg=$1 - shift 1 - - for a in "$@"; do - quoted_args+=("\"$a\"") - done - - echo ''${quoted_args[@]} - -# `nix run nixpkgs#$pkg -- ''${quoted_args[@]}` - exec nix run nixpkgs#$pkg "$@" - } - ''; in { programs.zsh = { @@ -47,11 +25,6 @@ in }; home.file.".bashrc".text = '' - ${nix_run_fn} - ${optionalString (!builtins.hasAttr "users" config) "${exec_zsh}"} ''; - - home.file.".zshrc".text = nix_run_fn; } -