nix-config-legacy/hosts/muscari/hardware-configuration.nix
mikl 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

26 lines
No EOL
1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Hardware configuration для muscari (Yandex Cloud VM)
# PLACEHOLDER — будет заменён реальным после создания VM в YC
# (см. ../NIXOS-SETUP.md, шаг 4-5)
# Временный placeholder чтобы flake.nix компилировался
# После создания VM в YC с Debian 12:
# 1. SSH в VM как debian
# 2. Сгенерировать реальный hardware-config через nixos-generate-config
# 3. Заменить этот файл
# 4. Перезапустить nixos-anywhere
{ ... }:
{
# NixOS ругается без fileSystems и boot.loader, поэтому минимальный placeholder
# ПОМЕНЯТЬ после первого старта VM
fileSystems."/" = {
device = "/dev/vda1";
fsType = "ext4";
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
# Для YC: virtio scsi
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" ];
}