nixos-config

My NixOS configuration files

nixos-config

My NixOS configuration files for my laptop and the microVM running this site.

I generally try to keep these configs simple and pragmatic, so stuff like Home Manager, Firefox extensions, and other 3rd-party flakes are out-of-scope. Besides, I don't want to write hundreds of lines of Nix and spend all day Nixifying my entire setup. This repo is for machine-specific stuff. For my machine-independent configs, see my dotfiles repo. Another reason for this separation is so that I can just clone my dotfiles anywhere, not just on NixOS machines.

I also made a NixOS cheatsheet.

Building the server OCI image:

nix build
# NOT the same thing as podman import
podman load < result
podman push forgejo.mit.edu/xy/nixos-config

Hyades config:

{
    "image": "forgejo.mit.edu/xy/nixos-config",
    "ports": {
        "xy": 80
    },
    "volumes": {
        "home": "/home/a",
        "ssh-keys": "/etc/ssh/keys",
        "srv": "/srv"
    },
    "envs": {
        "KRUN_INIT_PID1": "1",
        "PATH": "/run/current-system/sw/bin"
    },
    "network": "",
    "exposeports": [
        2222
    ]
}