This commit is contained in:
Peder Bergebakken Sundt 2023-12-09 22:54:15 +01:00
parent 1e99a598e3
commit 75e59fb6e3
1 changed files with 7 additions and 8 deletions

View File

@ -35,8 +35,8 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
xclip xclip
#rmate-sh # TODO: add to nixpkgs, add to ssh config #rmate-sh # TODO: add to ssh config
#remote-exec # TODO: add to nixpkgs #remote-exec # TODO
zip zip
unrar unrar
@ -117,25 +117,24 @@
#TODO: vpn #TODO: vpn
# TODO: wayland # TODO: fix both wayland, and x-forwarding
clip = "( if command -v wl-copy >/dev/null; then wl-copy --trim-newline --type text/plain; else xclip -sel clip -t text/plain -rmlastnl -i; fi )"; #clip = "( if command -v wl-copy >/dev/null; then wl-copy --trim-newline --type text/plain; else xclip -sel clip -t text/plain -rmlastnl -i; fi )";
clip = "xclip -sel clip -i -rmlastnl -t text/plain";
# TODO: ps1? # TODO: ps1?
pwd-fqdn = ''echo "$(whoami)@$(hostname -f):$(printf "%q" "$(realpath .)/")"''; pwd-fqdn = ''echo "$(whoami)@$(hostname -f):$(printf "%q" "$(realpath .)/")"'';
http-server = "${pkgs.python3}/bin/python -m http.server";
manix-fzf = ''manix "" 2>/dev/null | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix''; manix-fzf = ''manix "" 2>/dev/null | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix'';
# TODO: move to /run/user/... # TODO: move to /run/user/...
# TODO: add --nom once released - https://github.com/Mic92/nixpkgs-review/pull/303
nixpkgs-review = ''mkdir -p /dev/shm/nixpkgs-review && ln -sfn /dev/shm/nixpkgs-review $HOME/.cache/nixpkgs-review && nixpkgs-review''; nixpkgs-review = ''mkdir -p /dev/shm/nixpkgs-review && ln -sfn /dev/shm/nixpkgs-review $HOME/.cache/nixpkgs-review && nixpkgs-review'';
killall = "killall -v"; killall = "killall -v";
#bin = "perl -pe 'chomp' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
}; };
# TODO: auto-update db
programs.nix-index.enable = true; programs.nix-index.enable = true;
xdg.enable = true; xdg.enable = true;