Add diary
This commit is contained in:
parent
02f1127bcf
commit
cf9bc70c62
|
@ -19,6 +19,7 @@
|
||||||
bat
|
bat
|
||||||
dw
|
dw
|
||||||
rclone
|
rclone
|
||||||
|
bubblewrap
|
||||||
] ++ (import ../system/home-manager.nix).extraPackages pkgs;
|
] ++ (import ../system/home-manager.nix).extraPackages pkgs;
|
||||||
editorconfig = {
|
editorconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -20,13 +20,14 @@ pkgs: {
|
||||||
s = "kitty +kitten ssh";
|
s = "kitty +kitten ssh";
|
||||||
weather = "curl wttr.in/43.0844,-77.6749";
|
weather = "curl wttr.in/43.0844,-77.6749";
|
||||||
};
|
};
|
||||||
shellAbbrs = {
|
shellAbbrs = rec {
|
||||||
ns = "nix-shell --run fish -p";
|
ns = "nix-shell --run fish -p";
|
||||||
unlock-rclone = "set -x RCLONE_CONFIG_PASS (pass rclone)";
|
unlock-rclone = "set -x RCLONE_CONFIG_PASS (pass rclone)";
|
||||||
":qa" = "exit";
|
":qa" = "exit";
|
||||||
":q" = "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";
|
"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)";
|
"dl" = "wget (kitty +kitten clipboard --get-clipboard)";
|
||||||
};
|
};
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
|
|
Loading…
Reference in a new issue