- 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
26 lines
No EOL
763 B
Nix
26 lines
No EOL
763 B
Nix
# muscari — k3s single-node cluster на YC (Debian 12 → Nix через nixos-anywhere)
|
|
# https://git.iscg.dev/mikl/nix-config
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/users/mikl.nix
|
|
../../modules/services/k3s.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "muscari";
|
|
useDHCP = true;
|
|
firewall.allowedTCPPorts = [
|
|
22 # SSH
|
|
80 # HTTP (Ingress через Traefik)
|
|
443 # HTTPS (Ingress через Traefik)
|
|
# 6443 не открываем — kubectl через SSH-туннель
|
|
];
|
|
};
|
|
|
|
# После nixos-anywhere первая установка может быть 26.05,
|
|
# потом не трогаем (NixOS convention)
|
|
system.stateVersion = "25.11";
|
|
} |