dsakdsakdsak
This commit is contained in:
@@ -27,9 +27,8 @@
|
||||
#nix.trusted-users = [ "pbsds" ];
|
||||
|
||||
home-manager.users.pbsds = if config.services.xserver.desktopManager.gnome.enable
|
||||
then import ./home/gnome.nix
|
||||
else import ./home;
|
||||
|
||||
then ./home/gnome.nix
|
||||
else ./home;
|
||||
|
||||
nix.settings.allowed-users = [ "pbsds" ];
|
||||
nix.settings.trusted-users = [ "pbsds" ];
|
||||
|
||||
@@ -54,11 +54,21 @@ nix-search() (
|
||||
|
||||
trace "Preprocessing..."
|
||||
trace "+ jq ..."
|
||||
jq <"$packages_json" 'to_entries[] | "--\t\(.key)\t\((.value.meta.description // .value.meta.longDescription // "" | split("\n") | .[0]))\t\(({version: (.value.version)} // {}) + (.value.meta // {}))"' -r \
|
||||
time jq <"$packages_json" 'to_entries[] | [
|
||||
"--",
|
||||
.key,
|
||||
.value.meta.description // .value.meta.longDescription // "" | split("\n") | .[0],
|
||||
({version: (.value.version)} // {}) + (.value.meta // {}),
|
||||
] | @tsv' -r \
|
||||
| tr '0123456789' '9876543210' | sort | tr '0123456789' '9876543210' \
|
||||
> "$packages_tsv"
|
||||
|
||||
printf "%s\n" "$nixpkgs" > "$storepath"
|
||||
printf "%s\n" "$nixpkgs" > "$storepath";
|
||||
fi
|
||||
|
||||
if [[ ! -t 0 && "$?" -eq 0 ]]; then
|
||||
echo asd
|
||||
return 0
|
||||
fi
|
||||
|
||||
show-package() {
|
||||
|
||||
@@ -76,7 +76,7 @@ zeditor-remote() {
|
||||
worker() {
|
||||
local host="$1"
|
||||
# TODO: this assumes remote hosts has 'fd', use 'find' instead?
|
||||
fdargs=(--hidden --max-depth 5)
|
||||
fdargs=(--hidden --no-ignore --max-depth 5)
|
||||
# accept all, persist nothing, to scan hosts we've yet to trust, zed will still complain however
|
||||
sshargs=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null)
|
||||
if [[ "$host" = localhost ]]; then
|
||||
|
||||
@@ -105,7 +105,15 @@ in
|
||||
home.shellAliases.dushd = "du -shc * .[!.]?* | sort -h";
|
||||
|
||||
home.shellAliases.open = "xdg-open";
|
||||
home.shellAliases.rwhich = mkArgsAlias ''which "$@" | xargs realpath --'';
|
||||
home.shellAliases.rwhich = mkArgsAlias ''which "$@" | xargs realpath --'';
|
||||
home.shellAliases.rwhichcd = mkArgsAlias ''
|
||||
local dir=$(which "$@" | xargs realpath -- | cut -d/ -f-4 | grep ^/nix/store/ | fzf --height=15)
|
||||
if [[ -n "$dir" && -d "$dir" ]]; then
|
||||
# history -s "$(printf "cd %q\n" "$dir")"
|
||||
# history -a
|
||||
cd "$dir"
|
||||
fi
|
||||
'';
|
||||
|
||||
home.shellAliases.grep = "grep --color";
|
||||
home.shellAliases.diff = "diff -u --color"; # eyo
|
||||
|
||||
Reference in New Issue
Block a user