(Justin)

Tech nerd from Sweden

Matrix: @jlh:jlh.name

  • 1 Post
  • 119 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle
    1. Yes.
    2. Yes, and if you want custom configuration, you can include your configuration in-line in the same file that installs the http server and sets up systemd for it. Or you can even write your own module that drops configuration files in the same file.
    3. Home-manager modules are modules that run stuff exclusively in ~, doing things like configuring browsers or dotfiles. As opposed to NixOS modules which configure system-level daemons.






  • For question 1: You can have multiple resource objects in a single file, each resource object just needs to be separated by ---. The small resource definitions help keep things organized when you’re working with dozens of precisely configured services. It’s a lot more readable than the other solutions out there.

    For question 2, unfortunately Docker Compose is much more common than Kubernetes. There are definitely some apps that provide kubernetes documentation, especially Kubernetes operators and enterprise stuff, but Docker-Compose definitely has bigger market share for self-hosted apps. You’ll have to get experienced with turning a docker compose example into deployment+service+pvc.

    Kubernetes does take a lot of the headaches out of managing self-hosted clusters though. The self-healing, smart networking, and batteries-included operators for reverse-proxy/database/ACME all save so much hassle and maintenance. Definitely Install ingress-nginx, cert-manager, ArgoCD, and CNPG (in order of difficulty).

    Try to write yaml resources yourself instead of fiddling with Helm values.yaml. Usually the developer experience is MUCH nicer.

    Feel free to take inspiration/copy from my 500+ container cluster: https://codeberg.org/jlh/h5b/src/branch/main/argo

    In my repo, custom_applications are directories with hand-written/copy-pasted yaml files auto-synced via ArgoCD Operator, while external_applications are helm installations, managed via ArgoCD Operator Applications.





  • On non-Fairphones, which tend to have larger batteries and lower power consumption batteries tend to be usable for much longer. We are talking 3-5 years there.

    No way.

    Get the battery replaced once in the phone’s lifetime at a local 3rd party repair shop for €100 wait for half an hour and get your phone back.

    These shops only service iPhones and Samsungs, there’s only like 1-2 shops in Stockholm that repair Pixels and Xiaomis at all, let alone whatever 3 year old model you have. Not to mention things like screen and USB port repairs cost 100-200€ more than the fairphone parts.

    (Fairphone tends to have availability issues with spare parts. For example, right now the FP5 battery is out of stock.)

    I’ve had to wait a month for a fairphone battery before, but it’s not like they’re discontinued. I can imagine battery warehousing costs more than screens and USB ports.