summaryrefslogtreecommitdiff
path: root/hooks/pre-up
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/pre-up')
-rwxr-xr-xhooks/pre-up/1-ksh6
-rwxr-xr-xhooks/pre-up/2-nix1
-rwxr-xr-xhooks/pre-up/3-void4
-rwxr-xr-xhooks/pre-up/4-mbsync1
4 files changed, 3 insertions, 9 deletions
diff --git a/hooks/pre-up/1-ksh b/hooks/pre-up/1-ksh
deleted file mode 100755
index 30dd8e1..0000000
--- a/hooks/pre-up/1-ksh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-if ! [ -x "$(command -v mksh)" ]; then
- sudo xbps-install -y mksh
- echo "Installed, run chsh -s /bin/mksh"
-fi
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix
index 0cb74ba..19ba279 100755
--- a/hooks/pre-up/2-nix
+++ b/hooks/pre-up/2-nix
@@ -3,6 +3,7 @@
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
index f8b7bc5..f2523f4 100755
--- a/hooks/pre-up/3-void
+++ b/hooks/pre-up/3-void
@@ -2,9 +2,9 @@
# We'll use xpkg from xtools to find installable packages
if ! [ -x "$(command -v xpkg)" ]; then
- sudo xbps-install -y xtools
+ doas xbps-install -y xtools
fi
if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then
- sudo xbps-install -y void-repo-nonfree
+ doas xbps-install -y void-repo-nonfree
fi
diff --git a/hooks/pre-up/4-mbsync b/hooks/pre-up/4-mbsync
index 6d58bb1..b49b258 100755
--- a/hooks/pre-up/4-mbsync
+++ b/hooks/pre-up/4-mbsync
@@ -1,3 +1,2 @@
#!/bin/sh
mkdir -p ~/mail-home
-mkdir -p ~/mail-work \ No newline at end of file