From 670a137ade7a0f7acf0e937ee448711205d9373d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 16 Jul 2022 23:18:08 +0100 Subject: [PATCH] remove obsolete tools --- nixos/up.sh | 32 -------------------------------- tools/backup.sh | 3 --- 2 files changed, 35 deletions(-) delete mode 100755 nixos/up.sh delete mode 100755 tools/backup.sh diff --git a/nixos/up.sh b/nixos/up.sh deleted file mode 100755 index 251db500..00000000 --- a/nixos/up.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -DIR=`realpath "$DIR/../"` - -if [[ -z $DIR ]]; then - echo "please set DIR" - exit 1 -fi - -HOST=`hostname` -DIR=`realpath $DIR` -echo "using $DIR as the top level directory" -cd $DIR -git submodule update --init --recursive - -mkdir -p ~/.config/Code/User -ln -vfs "$DIR/.config/Code/User/settings.json" ~/.config/Code/User/settings.json -ln -vfs "$DIR/.config/Code/User/keybindings.json" ~/.config/Code/User/keybindings.json -mkdir -p ~/.local/share/applications -ln -vfs "$DIR/tools" ~/ -ln -vsf "$DIR/nixos/boxes/$HOST/home.nix" ~/.config/nixpkgs/home.nix -sudo ln -vsf "$DIR/nixos/boxes/$HOST/configuration.nix" /etc/nixos/configuration.nix -echo "all links done" - -sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos -nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager -nix-channel --update -nix-shell '' -A install - diff --git a/tools/backup.sh b/tools/backup.sh deleted file mode 100755 index d878c867..00000000 --- a/tools/backup.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -benice restic -p "$HOME/.vault/restic-password-file" -r sftp:fetcher@brix:/mnt/data/backup-targets/ --exclude-file "$HOME/.vault/restic-exclude" --verbose backup "$HOME/"