Updated swap size

This commit is contained in:
Dionysus 2024-02-13 23:44:27 -05:00
parent 8c8e3ec8a8
commit 88dd867693
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 11 additions and 3 deletions

8
incus
View File

@ -0,0 +1,8 @@
xbps-install incus incus-client
ln -s /etc/sv/incus /var/service
ln -s /etc/sv/incus-user /var/service
sv up incus
sv up incus-user
xbps-install runit-iptables

6
vps
View File

@ -10,9 +10,9 @@ ARCH=x86_64-musl # x86_64 or x86_64-musl
DRIVE=/dev/vda
HOSTNAME=blackhole
SSH_PORT=22 # Change me
SWAP_SIZE=4 # In GB (set to 0 to disable)
SWAP_SIZE=1 # In GB (set to 0 to disable)
TIMEZONE="America/New_York"
USERNAME=acidvegas
USERNAME=supernets
setup_root() {
xbps-install parted
@ -90,7 +90,7 @@ setup_chroot() {
setup_user() {
mkdir -p $HOME/.ssh
printf "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgw6zK6LghGq/6fdMGFKfH9fr+qCOASlD+Xi7Zoe7Ps acidvegas@blackhole" > $HOME/.ssh/authorized_keys
printf "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgw6zK6LghGq/6fdMGFKfH9fr+qCOASlD+Xi7Zoe7Ps" > $HOME/.ssh/authorized_keys
chmod 700 $HOME/.ssh && chown -R $USER $HOME/.ssh
chmod 400 $HOME/.ssh/authorized_keys && chattr +i $HOME/.ssh/authorized_keys && chattr +i $HOME/.ssh
}