The nix configuration
Find a file
2025-06-19 12:39:34 +03:00
.github Bump cachix/install-nix-action from 30 to 31 2025-03-11 06:19:43 +00:00
home dont like it for now but great idea 2025-06-15 19:12:37 +03:00
hosts formatting 2025-06-15 23:53:52 +03:00
modules fuck redhat (not working in aarch64) 2025-06-16 19:42:41 +03:00
secrets rekey for our beloved new server 2025-05-01 23:43:12 +03:00
.gitignore ignore result file 2024-12-07 16:08:48 +03:00
.mailmap add mailmap to make the git tools happier 2025-06-08 00:56:28 +03:00
flake.lock update flake.lock 2025-06-19 12:39:34 +03:00
flake.nix use other vscode server 2025-06-07 19:51:52 +03:00
justfile add an if clause 2025-05-06 21:24:53 +03:00
LICENSE ITS 2025 RAAAGHHHH 2025-01-13 21:15:31 +03:00
README.md add phone to readme 2025-02-18 22:09:41 +03:00

nixos is life

The nix configuration of mine. My intentions are just to maintain my configuration and to contribute to the nix community.

Here i have 4 machines and 1 sd card image that i maintain.

  • Laptop tartarus (faulty hardware, nvidia gpu doesnt work)
  • Desktop ymir (beast, my most prized possesion as of now)
  • Raspberry Pi 5 pochita (a server that i experiment with)
  • Raspberry Pi 5 SD image pochita-sd (produces an sd image that could be used to flash the sd card of a rpi-5)
  • Phone atreus (unrooted, nix-on-droid)

I didnt get these setup yet.

  • Raspberry Pi Zero 2W harmonica (small machine for small tasks and cronjobs) (not setup yet)
  • Android phone (termux) android (not setup yet)
How to bootstrap raspberry pi 5

How to use raspberry pi 5

I have 2 configurations for the raspberry pi 5. One is for the sd card (basically bootstraps the system) and the other is for my customized system itself.

build the image first (this took about 4 hours on ymir (binfmt for aarch64 needs to be enabled if you are building on x86_64))

$ nix build -L '.#nixosConfigurations.pochita-sd.config.system.build.sdImage'

then to flash the image to the sd card enable zstd

$ nix-shell -p zstd

then flash the image to the sd card

$ zstdcat nixos-sd-image-24.05.20241116.e8c38b7-aarch64-linux.img.zst | dd of=/dev/sda status=progress

and voila! when you plug the sd card to the raspberry pi 5 it will boot up with the configuration that you have built. And then you can ssh into it and further configure it.

To-do list

  • iso image generator for nixos
    • Basically the original nixos iso with added packages and tweaks.
  • build custom android rom
    • Or how to run nixos on the phone.
  • build android apps using nix
    • lichess
    • termux
  • build my qmk keyboard with nix
  • agenix
    • add my gpg keys
    • add ssh keys so that machines can connect to each other
  • module system with options
  • see which derivations will be built and which will be downloaded from cache or which is already present in the nix store.
  • see which python packages are giving build errors.
  • home-manager setup
  • make a development environment nix repository
  • enable swap on pochita
  • learnis it possible to enable swap with sd-image?