summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhooks/post-up/permissions4
-rwxr-xr-xhooks/post-up/services25
-rwxr-xr-xhooks/pre-up/2-nix10
-rwxr-xr-xhooks/pre-up/3-void10
-rwxr-xr-xhooks/pre-up/4-mbsync2
5 files changed, 0 insertions, 51 deletions
diff --git a/hooks/post-up/permissions b/hooks/post-up/permissions
deleted file mode 100755
index a2fda88..0000000
--- a/hooks/post-up/permissions
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-chmod 600 ~/.config/aerc/accounts.conf
-chmod 700 ~/.gnupg
diff --git a/hooks/post-up/services b/hooks/post-up/services
deleted file mode 100755
index 0d36f7d..0000000
--- a/hooks/post-up/services
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-if [ $(ls /var/service | grep elogind -c) -eq 0 ]
-then
- doas xbps-install -y elogind
- doas ln -s /etc/sv/elogind /var/service/
- sleep 5
- doas sv start elogind
-fi
-
-if [ $(ls /var/service | grep NetworkManager -c) -eq 0 ]
-then
- doas xbps-install -y NetworkManager dbus
- doas ln -s /etc/sv/NetworkManager /var/service/
- doas ln -s /etc/sv/dbus /var/service
- doas sv stop wpa_supplicant
- doas sv stop dhcpcd
- doas unlink /var/service/wpa_supplicant
- doas unlink /var/service/dhcpcd
- sleep 5
- doas sv start dbus
- doas sv start NetworkManager
-fi
-
-echo "Services setup; logout and in, then run xsync"
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix
deleted file mode 100755
index 19ba279..0000000
--- a/hooks/pre-up/2-nix
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-if ! [ -x "$(command -v nix)" ]; then
- echo "Installing Nix"
- doas install -d -m755 -o $(id -u) -g $(id -g) /nix
- doas xbps-install -y xz
- curl -L https://nixos.org/nix/install | sh
- echo "Nix has been installed, you should run nix profile install nixpkgs#nix-direnv once profile has been refreshed"
-fi
-
diff --git a/hooks/pre-up/3-void b/hooks/pre-up/3-void
deleted file mode 100755
index f2523f4..0000000
--- a/hooks/pre-up/3-void
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# We'll use xpkg from xtools to find installable packages
-if ! [ -x "$(command -v xpkg)" ]; then
- doas xbps-install -y xtools
-fi
-
-if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then
- doas xbps-install -y void-repo-nonfree
-fi
diff --git a/hooks/pre-up/4-mbsync b/hooks/pre-up/4-mbsync
deleted file mode 100755
index b49b258..0000000
--- a/hooks/pre-up/4-mbsync
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-mkdir -p ~/mail-home