diff options
| author | sils <sils@sils.li> | 2023-05-07 20:14:39 +0200 |
|---|---|---|
| committer | sils <sils@sils.li> | 2023-05-07 20:14:39 +0200 |
| commit | acf496fa8db90b9df999d20083d91ca24e1e098e (patch) | |
| tree | 400e7707b1c32adb56d767fd22950cabb782e353 /users/sils/zsh | |
| parent | Feat(treewide): Get river working (diff) | |
| download | nix-config-acf496fa8db90b9df999d20083d91ca24e1e098e.zip | |
Feat(treewide): Add river bloat
Diffstat (limited to 'users/sils/zsh')
| -rw-r--r-- | users/sils/zsh/default.nix | 12 |
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- |
