nixos-config

My NixOS configuration files

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
# 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](/dotfiles). 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](https://forgejo.mit.edu/SIPB/nixos-cheatsheet/).

Building the server OCI image:

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

Hyades config:

```json
{
    "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"
    },
    "network": "",
    "after": [],
    "exposeports": [
        2222
    ]
}
```