Commit graph

6 commits

Author SHA1 Message Date
231f9d5dcf muscari: fix disk-config.nix size 100%FREE -> 100% (disko 1.13 compat)
Disko 1.13.0+ rejects "100%FREE" in favor of "100%". Earlier
commit 139e5f3 (from agent 'isogonalconguate') had this fix but
got dropped during the agent-garbage cleanup (commit 430252a is
GRUB switch, 5e1b369 is systemd-boot, 99b887e is original disko).

This brings the fix back, with cleaned-up comments that reflect
current reality (GRUB bootloader, BIOS mode).

Session: verify plan
2026-06-26 14:40:53 +03:00
430252a4c7 muscari: switch bootloader from systemd-boot (UEFI) to GRUB (BIOS)
VM 81.26.189.192 boots in Legacy BIOS mode (PREREQUISITES.md
check 5+11 returned BIOS / NO_EFI), so UEFI/systemd-boot is not
available. Switched to GRUB on /dev/vda.

Changes:
- boot.loader.grub.enable = true, device = "/dev/vda"
- boot.loader.systemd-boot.enable = lib.mkForce false
- boot.loader.efi.canTouchEfiVariables = lib.mkForce false
- Comments updated to reflect BIOS / GRUB choice

disk-config.nix NOT touched: the 512M ESP at /boot is unused in
BIOS mode (GRUB installs to MBR), but harmless. If we later switch
to UEFI, the ESP will be ready.

Verification:
- nix flake show: nixosConfigurations.muscari
- boot.loader.grub.enable = true
- boot.loader.systemd-boot.enable = false
- fileSystems: /boot (vfat ESP) + / (ext4 root) from disko

Session: verify plan
2026-06-26 03:05:01 +03:00
5e1b3697c8 muscari: switch bootloader to systemd-boot (UEFI)
Changes:
- boot.loader: generic-extlinux-compatible (BIOS) → systemd-boot (UEFI)
- YC standard-v3 VM is UEFI by default; systemd-boot is the modern
  choice for single-disk cloud VMs (no GRUB complexity)
- Comments updated: nixos-anywhere → nixos-install (in tmux), aligning
  with the documented install procedure in projects/servers/muscari/SETUP.md
- .gitignore: add hosts/*/hardware-configuration.nix as defense-in-depth
  (muscari uses disko and has no hw-config file; this guards future hosts
  from leaking UUIDs/MACs to the public forgejo repo)

Context:
- muscari VM specs: 2 vCPU / 8 GB / 100 GB SSD (was incorrectly documented
  as 4/16 in muscari/README.md; fixed there too)
- Flake builds cleanly:
    nix flake show           → nixosConfigurations.muscari
    hostname                 → "muscari"
    systemd-boot.enable      → true
    fileSystems."/"         → ext4 (disko-derived)
    fileSystems."/boot"     → vfat (disko-derived)

Verified: nix --extra-experimental-features 'nix-command flakes' flake show
and eval .#nixosConfigurations.muscari.config.{networking.hostName,
boot.loader.systemd-boot.enable, fileSystems} all pass.

Session: verify plan
2026-06-26 02:44:08 +03:00
99b887e97f muscari: add disko config, hardcode mikl ssh key 2026-06-26 00:40:19 +03:00
aedf727849 Rename to nix-config, terminology cleanup
- Rename repo: nixos-iscg -> nix-config (forgejo)
- Update description for future darwin host (poppy)
- Update README, flake.nix description
- Fix references in hosts/muscari comments
2026-06-25 15:28:40 +03:00
2d023fc86d Initial flake: muscari k3s host
- flake.nix: mkHost helper, SOPS-age integration
- hosts/common: locale, sshd, universal packages
- hosts/muscari: k3s host with Cilium flags
- modules/users/mikl: SSH keys via forgejo .keys + sha256 pinning
- modules/services/k3s: k3s daemon with Cilium-compatible flags
- hardware-configuration.nix: placeholder, will be regenerated on real VM

Stack:
- NixOS 25.11
- k3s single-node (Cilium CNI, Traefik ingress)
- SOPS + age for secrets
- Multi-host ready (rosemary planned)
2026-06-25 14:48:03 +03:00