From c5510367db582d1c0683f182dd0e151ea0ab3b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Jun 2022 14:14:22 +0200 Subject: Improvements for NixOS --- install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install b/install index 86fe425..6c5edbb 100755 --- a/install +++ b/install @@ -1,6 +1,6 @@ -#!/bin/sh +#!/usr/bin/env bash -cd `dirname $0` +cd "$(dirname "$0")" || exit 1 git submodule update --init --recursive || (echo "Submodule update failed!"; exit 5) @@ -34,6 +34,7 @@ if ask "gnuscreen" "Install configurations for various utility tools"; then fi if ask "ssh" "Install SSH config"; then + mkdir -p ~/.cache/ssh # directory for sockets inst private/ssh_config ~/.ssh/config inst local/bin/sshvnc ~/.local/bin/sshvnc fi @@ -60,6 +61,9 @@ fi if ask "sync" "Install synchronization"; then inst local/bin/allsync ~/.local/bin/allsync + if [ "$(ps -o comm= 1)" = "systemd" ]; then + inst config/systemd/user/allsync.{service,timer} ~/.config/systemd/user/ + fi inst private/mbsyncrc ~/.mbsyncrc inst private/notmuch-config ~/.notmuch-config -- cgit v1.2.3