Commit Graph

154 Commits

Author SHA1 Message Date
Eli Ribble f9be9a1657 Add bzip2 in case PHP needs it. 2025-04-11 16:17:29 -07:00
Eli Ribble 225cb56f74 Add htop for monitoring the system.
Help me figure out that I was running out of RAM.
2025-04-11 16:02:33 -07:00
Eli Ribble 17cb144b5d Switch to actively-enabled swap.
I've already had some crashes while rebuilding the system due to
auto-of-memory errors.
2025-04-11 15:45:42 -07:00
Eli Ribble 484a4b2a4e Working website for AFAF.
I had to add various directives that I borrowed from a previous install.
It's essentially PHP black magic.

I also had to prevent NixOS from overwriting the permissions on the PHP
users home directory so that nginx would serve the static files as well.
2025-04-11 15:33:54 -07:00
Eli Ribble a24fae4dc8 Fix whitespace 2025-04-11 14:46:15 -07:00
Eli Ribble 36dda5e233 Add MySQL (MariaDB) 2025-04-11 14:46:03 -07:00
Eli Ribble 5b814fb064 Show PHP errors so we can figure out what's wrong 2025-04-11 11:16:52 -07:00
Eli Ribble 422aa2abb5 Get PHP working
I can do a basic phpinfo() with this.
2025-04-11 07:11:09 -07:00
Eli Ribble 484c34ef59 Get nginx up and the cert working.
I decided to remove the porkbun provider just to simplify things since
DNS validation incurs a much longer wait than HTTP validation. I also
removed the default address stuff since they would need a port and they
shouldn't be required - I pulled them from sovr which is doing more
exotic things with IPv6.

I also disabled systemd.network since I got a warning about networking
conflict.

I moved the firewall directive to the networking file.

At this point the system comes up and nginx is hosting a static page.
2025-04-10 17:49:34 -07:00
Eli Ribble eb61a1fb6e Initial config for AFAF server. 2025-04-10 16:48:42 -07:00
Eli Ribble 1d81fbcd9d Add VLC for watching recorded videos 2025-04-09 09:14:30 -07:00
Eli Ribble 947244095b Add tools for assessing overheat risk.
I'm thinking that I've been overheating my laptop, and that has lead to
the occasional restarts. These tools are helping me to assess that.
2025-04-09 09:13:44 -07:00
Eli Ribble 09369a243a Add libation for extracting audiobooks 2025-04-09 09:12:57 -07:00
Eli Ribble 481b3ac59f Switch from old Brother printer to new Brother printer.
I no longer need the elaborate workaround for a 12-year-old printer.
2025-03-25 13:12:10 -07:00
Eli Ribble c8dfe8bfde Add Freetube.
Not sure how long it'll work, but right now YouTube on my Chromium
install is getting blocked about 8 seconds into any video.
2025-03-12 09:27:31 -07:00
Eli Ribble 9ace639765 Add devenv for setting up elaborate Python dev environments 2025-03-12 09:27:31 -07:00
Eli Ribble 9fd5cf781a Add custom fish shell that shows whether I'm in nix-shell 2025-03-12 09:27:31 -07:00
Eli Ribble 25169346e6 Add thunderbird 2025-03-12 09:27:31 -07:00
Eli Ribble f185e4f61f Fix enable ungoogled chromium 2025-03-12 09:27:31 -07:00
Eli Ribble 7e7df75a27 Add gitFull package for git.
It allows me to send patch emails
2025-03-12 09:27:31 -07:00
Eli Ribble d5bd463b49 Update to a newer home-manager channel
Mirrors the update I did to the overall system
2025-03-12 09:27:31 -07:00
Eli Ribble 12485dc698 Get rid of spotify, use spotify-player
The main graphical spotify client seems to crash kind of a lot.
2025-03-12 09:27:31 -07:00
Eli Ribble 8b8f4c9379 Add mercurial.
Sometimes I do stuff with code.
2025-03-12 09:27:31 -07:00
Eli Ribble 8338996e65 Move to ungoogled-chromium for my browsing.
I'm sick of those guys.
2025-03-12 09:27:31 -07:00
Eli Ribble cee7610873 Add aerc email client.
I figured out how to get it to work with Stalwart mail.
2025-03-12 09:27:31 -07:00
Eli Ribble 7de0a20139 Limit nginx to a single specific IPv6 address.
It frees up the other address to take over port 80.
2025-01-22 01:57:31 -07:00
Eli Ribble 1c10ea89d7 Add working proof-of-concept of frp server (frps)
This is working on a single IPv6 address of the two we now have
avaliable. Because nginx is still binding to port 80 on all addresses,
we have to test this on port 8081, which is less than ideal. Still, it's
progress.
2025-01-22 01:34:25 -07:00
Eli Ribble 3993b526a5 Convert from cloud-init networking to static networking
This is honestly pretty ugly. The issue is that I want two different
IPv6 addresses on this server. I get one address for free as part of my
hosting agreement. The other I have to pay $0.01 per month for. The
address is routable, but it's not provided via cloud-init like the
initial address.

I therefore took the data from /var/lib/cloud/instance/network-config.json
and translated it into this configuration manually. It's dangerous - I
don't know when any of this information may change.

However, it works, and both addresses are now bound to eth0.

Notice that I set the network configuration name to "09-wan". This is
because the previous configuration using cloud-init created a network
configuration at /etc/systemd/network/10-cloud-init that has to be
manually removed or superseded.
2025-01-22 00:40:43 -07:00
Eli Ribble 99f0311a38 Fix error around --impure
I was seeing a stack trace with this at the bottom:

       error: cannot look up '<home-manager/nixos>' in pure evaluation mode (use '--impure' to override)

After reading a bit at https://nixos-and-flakes.thiscute.world/nixos-with-flakes/start-using-home-manager
I was able to craft this shape which uses home-manager in a flake and
doesn't have the same problem.
2025-01-21 23:31:00 -07:00
Eli Ribble 37c8d92d05 Add personal config files through home-manager
I'm doing more development on this server, it's nice to have my configs.
2025-01-13 06:26:32 -07:00
Eli Ribble 5421eccc0b Disable password auth in SSH and root login
More secure.
2025-01-05 19:06:15 -07:00
Eli Ribble a154a67ac8 Re-enable the bare 'sovr.cloud' certificate
It works now that our DNS entries are correct.
2025-01-05 19:05:10 -07:00
Eli Ribble 7c7b53349a Disable the firewall.
Apparently it's blocking port 80 which is making Let's Encrypt certs
fail as well as screwing with our redirect for web browsers.
2025-01-03 09:02:48 -07:00
Eli Ribble d7aabdf198 Add ACME-based Let's Encrypt certificate for TLS
The bare "sovr.cloud" certificate doesn't work yet, but I'm leaving it
there for now.
2025-01-03 09:02:07 -07:00
Eli Ribble f57f7097c1 Add ssh key for eliribble, sort properties alhpabetically 2025-01-02 10:17:39 -07:00
Eli Ribble 4ae53fe701 Add sovr session secret to sovr-server config 2025-01-02 10:17:16 -07:00
Eli Ribble c26aef1700 Add 'deploy' user
We'll use this to run our server process
2025-01-02 10:16:32 -07:00
Eli Ribble e2461e9149 Initial sovr-server systemd service config
This also changes to directly referencing the local git checkout of my
flake definition which makes it faster and safer to iterate on the
logic.

At this point I am creating a systemd unit file, but it's not correct at
all.
2025-01-02 07:35:32 -07:00
Eli Ribble e3779851bb Move timezone to be alpha-sorted 2025-01-02 07:20:42 -07:00
Eli Ribble 1f3d84e37c Add working config for sovr flake.
This builds the sovr-server software from the flake defined in its root.
2025-01-02 07:20:14 -07:00
Eli Ribble 9a0d2bac7b Add neovim to sovr 2025-01-02 07:19:55 -07:00
Eli Ribble 2f950e883d Switch sovr cloud to management via flakes. 2024-12-28 21:37:57 -07:00
Eli Ribble d9f3667421 Permanently enable nix-flakes and nix-command
I'm enabling it a *lot* for one-off commands. I probably should just
accept my fate.
2024-12-27 08:59:30 -07:00
Eli Ribble c57e7cd2c2 Sort options alphabetically
Makes for better organizations and easier diffs
2024-12-27 08:55:46 -07:00
Eli Ribble 235a6d3ce9 Add initial working just.hosting cloud config 2024-12-27 05:50:43 -07:00
Eli Ribble 10bd823179 Add Chromium.
Crashes somewhat less than Firefox, it seems.
2024-12-27 05:50:43 -07:00
Eli Ribble eae408484b Add libvirtd for VM management
It was useful for testing out Umbrel
2024-12-27 05:50:43 -07:00
Eli Ribble de0b9e515f Try to make printer not hold up rebuild
I'm not sure the printer still works, I'm on another network, but at
least it doesn't make the rebuild process hang.
2024-12-27 05:50:43 -07:00
Eli Ribble 227371359f Add nginx reverse proxy for dev environment.
This adds step-ca, but misses the step of having the CA initialize
itself and create the certificate and add the cert to
/etc/nixos/certs/sovr.[crt|key].
2024-12-27 05:50:43 -07:00
Eli Ribble d7d81564e3 Add service to start steam in the background.
I'm actually also starting Steam in big picture mode through the steam
configuration UI on this system, so this may be redundant, but I'm
adding it anyway.
2024-12-18 10:43:02 -07:00