aboutsummaryrefslogtreecommitdiffstats
path: root/users/sils/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'users/sils/zsh')
-rw-r--r--users/sils/zsh/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/users/sils/zsh/default.nix b/users/sils/zsh/default.nix
index e2e8ca4..5e54636 100644
--- a/users/sils/zsh/default.nix
+++ b/users/sils/zsh/default.nix
@@ -22,6 +22,10 @@
historySubstringSearch.enable = true;
+ sessionVariables = {
+ WALLPAPER = "${config.home.homeDirectory}/srv/wallpaper.jpg";
+ };
+
shellAliases = {
vim = "nvim";
ls = "lsd";
@@ -33,17 +37,15 @@
repreconf = "restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd";
b-del = "sudo btrfs subv delet /srv/snapshots/home";
b-shot = "sudo btrfs subvolume snapshot -r /home /srv/snapshots/home";
- b-home = "[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home;
- sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo restic -r /mnt/storage/backups --
- password-file ~/srv/restic_pswd --cache-dir /srv/.restic-cache backup /srv/snapshots/home;";
- r-clean = "sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd --cache-
+ b-home = ''[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home; sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd --cache-dir /srv/.restic-cache backup /srv/snapshots/home;'';
+ r-clean = ''sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd --cache-
dir /srv/.restic-cache forget \
--keep-weekly 7 \
--keep-daily 7 \
--keep-monthly 6 \
--keep-yearly 10 \
--keep-hourly 5 \
- --keep-tag prs";
+ --keep-tag prs'';
r-prune = "sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd --cache-
dir /srv/.restic-cache prune";
r-check = "sudo restic -r /mnt/storage/backups --cache-dir /srv/.restic-cache --password-