diff --git a/home/alias.nix b/home/alias.nix deleted file mode 100644 index 8f3ffb6..0000000 --- a/home/alias.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, pkgs, ... }: - -{ - home.shellAliases = { - top = "btm --battery"; - linkbox = "ln -s (pwd) ~/box/"; - rloft = "tmux source-file ~/.config/tmux/rloft.conf"; - liftbox = "rsync -vaL --delete ~/box/ tstraube@login.server.uni-frankfurt.de:box/"; - ktiubox = "rsync -vaL --delete ~/box/ root@ktiu.net:/var/www/html/box/"; - ymd = "date +'%Y-%m-%d'"; - pulluni = "ssh tstraube@login.server.uni-frankfurt.de \"cd uni-tstraube && git pull\""; - pullstat = "ssh tstraube@login.server.uni-frankfurt.de \"cd stat24 && git pull\""; - pullds = "ssh tstraube@login.server.uni-frankfurt.de \"cd ds23 && git pull\""; - pullmla = "ssh tstraube@login.server.uni-frankfurt.de \"cd malta23 && git pull\""; - pulldkg = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/dkg_lp && git pull\""; - pullgrid = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/grid && git pull\""; - pullsneak = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/dkg_lp_prev && git pull\""; - pullkhole = "ssh root@ktiu.net \"cd /var/www/karaoke && git pull\""; - buildfk = "curl -X POST -d '{}' https://api.netlify.com/build_hooks/65dc8705b91d7cbaf0a1e1b5"; - showbox = "chromium-browser -app=https://user.uni-frankfurt.de/~tstraube/box"; - showc = "chromium-browser -app=https://user.uni-frankfurt.de/~tstraube/c/"; - castget = "castget -prvC ~/.config/castget/castget.conf"; - castsync = "rsync -va --remove-source-files --progress --stats ~/.local/share/podcasts/ /run/media/till/CLIP\\ JAM/Podcasts/"; - cb = "cd $(sed 's|^file://||' /home/till/.config/gtk-3.0/bookmarks | fzf --height 10% --reverse)"; - univpn = "secret-tool lookup server uni-frankfurt.de account tstraube | sudo openconnect --config=/home/till/.config/openconnect/config --passwd-on-stdin"; - v = "nvim"; - r = "R --no-save --no-restore"; - R = "R --no-save --no-restore"; - cdg = "cd \$(git rev-parse --show-toplevel)"; - map = "telnet mapscii.me"; - weather = "curl wttr.in/frankfurt"; - }; -} diff --git a/home/default.nix b/home/default.nix index f2926c2..ef157d3 100644 --- a/home/default.nix +++ b/home/default.nix @@ -40,6 +40,7 @@ bookworm mindustry heroic + anki-bin ]; diff --git a/home/firefox.nix b/home/firefox.nix index cab937c..af29fa7 100644 --- a/home/firefox.nix +++ b/home/firefox.nix @@ -101,6 +101,18 @@ updateInterval = 24 * 60 * 60 * 1000; definedAliases = [ "@ub" ]; }; + "SciHub" = { + urls = [{ template = "https://libgen.is/search.php?req={searchTerms}"; }]; + iconUpdateURL = "https://libgen.is/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; + definedAliases = [ "@lg" ]; + }; + "Libgen" = { + urls = [{ template = "https://libgen.is/search.php?req={searchTerms}"; }]; + iconUpdateURL = "https://libgen.is/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; + definedAliases = [ "@lg" ]; + }; "Leo" = { urls = [{ template = "https://dict.leo.org/englisch-deutsch/{searchTerms}"; }]; iconUpdateURL = "https://dict.leo.org/img/favicons/ende-32.png"; diff --git a/home/fish.nix b/home/fish.nix index 5e86b86..7174f2b 100644 --- a/home/fish.nix +++ b/home/fish.nix @@ -1,5 +1,33 @@ { config, pkgs, ... }: -{ + home.shellAliases = { + top = "btm --battery"; + linkbox = "ln -s (pwd) ~/box/"; + rloft = "tmux source-file ~/.config/tmux/rloft.conf"; + liftbox = "rsync -vaL --delete ~/box/ tstraube@login.server.uni-frankfurt.de:box/"; + ktiubox = "rsync -vaL --delete ~/box/ root@ktiu.net:/var/www/html/box/"; + ymd = "date +'%Y-%m-%d'"; + pulluni = "ssh tstraube@login.server.uni-frankfurt.de \"cd uni-tstraube && git pull\""; + pullstat = "ssh tstraube@login.server.uni-frankfurt.de \"cd stat24 && git pull\""; + pullds = "ssh tstraube@login.server.uni-frankfurt.de \"cd ds23 && git pull\""; + pullmla = "ssh tstraube@login.server.uni-frankfurt.de \"cd malta23 && git pull\""; + pulldkg = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/dkg_lp && git pull\""; + pullgrid = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/grid && git pull\""; + pullsneak = "ssh till@geocom.uni-frankfurt.de \"cd /var/www/dkg_lp_prev && git pull\""; + pullkhole = "ssh root@ktiu.net \"cd /var/www/karaoke && git pull\""; + buildfk = "curl -X POST -d '{}' https://api.netlify.com/build_hooks/65dc8705b91d7cbaf0a1e1b5"; + showbox = "chromium-browser -app=https://user.uni-frankfurt.de/~tstraube/box"; + showc = "chromium-browser -app=https://user.uni-frankfurt.de/~tstraube/c/"; + castget = "castget -prvC ~/.config/castget/castget.conf"; + castsync = "rsync -va --remove-source-files --progress --stats ~/.local/share/podcasts/ /run/media/till/CLIP\\ JAM/Podcasts/"; + cb = "cd $(sed 's|^file://||' /home/till/.config/gtk-3.0/bookmarks | fzf --height 10% --reverse)"; + univpn = "secret-tool lookup server uni-frankfurt.de account tstraube | sudo openconnect --config=/home/till/.config/openconnect/config --passwd-on-stdin"; + v = "nvim"; + r = "R --no-save --no-restore"; + R = "R --no-save --no-restore"; + cdg = "cd \$(git rev-parse --show-toplevel)"; + map = "telnet mapscii.me"; + weather = "curl wttr.in/frankfurt"; + }; programs.fish = { enable = true; interactiveShellInit = "fish_add_path ${config.xdg.dataHome}/npm/packages/bin"; diff --git a/home/minimal.nix b/home/minimal.nix index 471acc0..61e3766 100644 --- a/home/minimal.nix +++ b/home/minimal.nix @@ -94,7 +94,6 @@ ]; imports = [ - ./alias.nix ./calendars.nix ./fish.nix ./foot.nix