141 lines
4.1 KiB
Nix
141 lines
4.1 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: let
|
|
fork = cmd: "fork ${cmd}";
|
|
edit_dir = dir: "sh -c 'cd ${dir}; hx ${dir}'";
|
|
with-mic-check = cmd: fork "sh -c '${config.home.sessionVariables.TERMINAL} mic-check; ${cmd}'";
|
|
in [
|
|
{
|
|
Orga = [
|
|
{Kassandra = fork "kassandra2";}
|
|
{Kalendar = "calendar";}
|
|
{Habitica = fork "firefox https://habitica.com";}
|
|
{Tasks = "tasksh";}
|
|
{Meditate = "meditate";}
|
|
{Pythia = "pythia";}
|
|
{Notes = edit_dir "~/git/notes";}
|
|
];
|
|
}
|
|
{
|
|
Research = {
|
|
Zotero = fork "zotero";
|
|
Open = fork "evince ~/git/promotion/out/print.pdf";
|
|
Build = "sh -c 'cd ~/git/promotion; nix develop -c nix run'";
|
|
Directory = fork "${config.home.sessionVariables.TERMINAL} -d ~/git/promotion";
|
|
Edit = edit_dir "~/git/promotion";
|
|
};
|
|
}
|
|
{
|
|
Power = {
|
|
Shutdown = "systemctl poweroff";
|
|
Suspend = "systemctl suspend";
|
|
Reboot = "systemctl reboot";
|
|
};
|
|
}
|
|
{
|
|
SSH = let
|
|
ssh = host: "${config.home.sessionVariables.TERMINAL} +kitten ssh ${host}";
|
|
in [
|
|
{"hera via vpn" = ssh "hera.vpn.m-0.eu";}
|
|
{"fluffy via vpn" = ssh "fluffy.vpn.m-0.eu";}
|
|
{remote-builder = ssh "phoibe.cased.de -i /etc/nixos/private/id_ed25519-nix-builder";}
|
|
{ag = ssh "ag-forward";}
|
|
{mathe-gateway = ssh "gw";}
|
|
{backup-server = ssh "borg.cysec.de";}
|
|
{shells = ssh "shells";}
|
|
{"bach (ved)" = ssh "bach.vocalensemble-darmstadt.de";}
|
|
{"nixbuild.net" = "${pkgs.rlwrap}/bin/rlwrap ssh eu.nixbuild.net -i /etc/nixos/private/id_ed25519-nix-builder shell";}
|
|
{"fluffy via local network" = ssh "fluffy.lo.m-0.eu";}
|
|
{"hera via public v4" = ssh "hera-v4";}
|
|
{"TU Tunnel" = "sshuttle --python python3.9 -r gw 130.83.0.0/16";}
|
|
];
|
|
}
|
|
{
|
|
Sound = {
|
|
"Play/Pause" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
|
MPD = "ncmpcpp";
|
|
"Lautstärke" = "ncpamixer";
|
|
Pavucontrol = fork "pavucontrol";
|
|
Headset = {
|
|
Earplugs = {
|
|
connect = "bluetoothctl connect 00:00:AB:BD:7D:68";
|
|
disconnect = "bluetoothctl disconnect 00:00:AB:BD:7D:68";
|
|
};
|
|
Overears = {
|
|
connect = "bluetoothctl connect E8:EE:CC:25:66:C3";
|
|
disconnect = "bluetoothctl disconnect E8:EE:CC:25:66:C3";
|
|
};
|
|
};
|
|
};
|
|
}
|
|
{
|
|
Apps = {
|
|
Config = edit_dir "~/git/config";
|
|
Files = fork "nautilus";
|
|
Accounting = {
|
|
Update = "nix run ./git/buchhaltung#update";
|
|
Display = "hledger -f ~/git/buchhaltung/buchhaltung.journal ui -- --watch --theme=terminal -X€ -t -E";
|
|
};
|
|
Games = {
|
|
GW2 = fork "gw2";
|
|
Steam = fork "steam";
|
|
Minecraft = fork "minecraft-launcher";
|
|
};
|
|
};
|
|
}
|
|
{
|
|
Web = {
|
|
Browser = fork "firefox";
|
|
"Private Browser" = fork "firefox --private-window";
|
|
Chromium = fork "chromium";
|
|
"Software-Updates" = "software-updates";
|
|
Watchfeeds = "watchfeeds";
|
|
News = "news";
|
|
Deluge = fork "deluge";
|
|
VoxMachina = "mpv https://www.youtube.com/playlist?list=PL1tiwbzkOjQz7D0l_eLJGAISVtcL7oRu_";
|
|
};
|
|
}
|
|
{
|
|
Passmenu = {
|
|
Password = "pass-fzf";
|
|
OTP = "pass-fzf otp";
|
|
};
|
|
}
|
|
{"Select Mode" = "select-mode";}
|
|
{
|
|
Communication = [
|
|
{Matrix = fork "element-desktop";}
|
|
{
|
|
Mail = {
|
|
Open = "neomutt";
|
|
Inbox = "neomutt -f ~/Maildir/hera/Inbox";
|
|
Code = "neomutt -f ~/Maildir/hera/Code";
|
|
};
|
|
}
|
|
{
|
|
Mumble = {
|
|
CDA = with-mic-check "mumble mumble://maralorn@mumble.hax404.de";
|
|
Nixos = with-mic-check "mumble mumble://maralorn@lassul.us/nixos";
|
|
};
|
|
}
|
|
{Weechat = "weechat";}
|
|
{Signal = fork "signal-desktop";}
|
|
{Zoom = with-mic-check "zoom";}
|
|
{Telegram = fork "telegram-desktop";}
|
|
{Discord = with-mic-check "Discord";}
|
|
{Tmate = "tmate";}
|
|
];
|
|
}
|
|
{"Monitor (btop)" = "btop";}
|
|
{
|
|
"W17" = {
|
|
"MPD Whisky" = "ncmpcpp -h whisky.w17.io";
|
|
"MPD Burbon" = "ncmpcpp -h burbon.w17.io";
|
|
Summer = "ssh door@burbon.w17.io buzzer";
|
|
Open = "ssh door@burbon.w17.io open";
|
|
Close = "ssh door@burbon.w17.io close";
|
|
};
|
|
}
|
|
]
|