Add diary
This commit is contained in:
parent
02f1127bcf
commit
cf9bc70c62
|
@ -19,6 +19,7 @@
|
|||
bat
|
||||
dw
|
||||
rclone
|
||||
bubblewrap
|
||||
] ++ (import ../system/home-manager.nix).extraPackages pkgs;
|
||||
editorconfig = {
|
||||
enable = true;
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue