Hugo Website, Nixos, and CD

Probelem I host my website at home for fun. I also use NixOS on my server. Previously, I had included my hugo website as a flake and built the package when I updated the system. This is a hassle and will sometimes cause other packages to update. I wanted continuous deployment that did not effect the host. Solution I was inspired by this by Brad Parker. I also used this GitHub issue to fix a bug. ...

April 9, 2024 · 2 min · 405 words · Nathan Wright

Installing Android Studio with Distrobox

Installing Android Studio with Distrobox has a few missing dependencies. These were the following instructions that I needed to complete in order to install on an Ubuntu 22.04 container. (Host Machine) Create a Distrobox container # Note replace <container-name> with a unique name distrobox create --name <container-name> --image ubuntu:22.04 --home $HOME/distrobox/home/<container-name> distrobox enter <container-name> (Container) Install dependencies # Installing dependencies sudo dpkg --add-architecture i386 sudo apt update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 sudo apt install libncurses5 libpulse0 libxtst6 git libglib2.0-bin build-essential libxft2 qemu qemu-kvm libnotify4 libglu1 xvfb (Host Machine) Download Android Studio from the official website here (Host Machine) Move the downloaded tar.zx file to home of container e.g. mv ~/Downloads/android-studio-2023.2.1.24-linux.tar.gz ~/distrobox/home/<container-name> (Container) Extract the tar.xz tar -xzf <name-of-file> e.g. cd ~/ tar -xzf android-studio-2023.2.1.24-linux.tar.gz (Container) Android studio can now be started from the home directory with ./android-studio/bin/studio.sh. (Container) Add it to your path by appending export PATH="$HOME/android-studio/bin:$PATH" to your ~/.bashrc. Now it can be launches with studio.sh

April 3, 2024 · 1 min · 161 words · Nathan Wright

Nixos Nextcloud Setup

Tutorial on how to Setup Nixos, Tailscale, Nextcloud and Caddy with Cloudflare Take inspiration from My Configuration Download Nixos Graphical Installer and Install User tab select: Use the same password for the administator account Desktop tab: Select no desktop environment or perferred Unfree Software tab: Allow unfree software Reboot and you should be able to login Enabling tailscale and ssh Open configuration sudo nano /etc/nixos/configuration.nix Modify networking.hostname = "nixos"; to a reasonable name ...

October 19, 2023 · 3 min · 516 words · Nathan Wright

First

Test Post

August 21, 2023 · 1 min · 2 words · Nathan Wright