Add diary

This commit is contained in:
Emi Simpson 2023-04-08 12:13:34 -04:00
parent 02f1127bcf
commit cf9bc70c62
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847
2 changed files with 4 additions and 2 deletions

View file

@ -19,6 +19,7 @@
bat
dw
rclone
bubblewrap
] ++ (import ../system/home-manager.nix).extraPackages pkgs;
editorconfig = {
enable = true;

View file

@ -20,13 +20,14 @@ pkgs: {
s = "kitty +kitten ssh";
weather = "curl wttr.in/43.0844,-77.6749";
};
shellAbbrs = {
shellAbbrs = rec {
ns = "nix-shell --run fish -p";
unlock-rclone = "set -x RCLONE_CONFIG_PASS (pass rclone)";
":qa" = "exit";
":q" = "exit";
"rmount" = "rclone --rc --rc-web-gui --rc-no-auth --cache-dir /tmp/rclone-cache mount --vfs-cache-mode full --vfs-cache-max-size 8Gi";
"backup" = "restic -r rclone:rit:'Restic Backups/'(hostname | sed \"s/\\(.\\)/\\u\\1/\") -p (pass backups | psub) backup ~/ --exclude-caches --exclude-file=${import ./restic.nix}";
"backup" = "${unlock-rclone} && restic -r rclone:rit:'Restic Backups/'(hostname | sed \"s/\\(.\\)/\\u\\1/\") -p (pass backups | psub) backup ~/ --exclude-caches --exclude-file=${import ./restic.nix}";
"diary" = "bwrap --bind ~/Diary/gate/ / --bind ~/Diary/store /store --ro-bind /nix /nix --bind /run /run -- (whereis -b restic | cut -c 9-) -r /store -p (pass diary | psub) backup -H 'diary' -e /nix -e /run -e /store -e /home /";
"dl" = "wget (kitty +kitten clipboard --get-clipboard)";
};
shellInit = ''