diff --git a/.gitignore b/.gitignore index 9fdb9f2..673b16c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,8 @@ devenv.yaml # age key (НИКОГДА не коммитить!) *.age-key *age-keys.txt -*age-keys.json \ No newline at end of file +*age-keys.json + +# hardware-configuration per-host (защита от случайного коммита в публичный repo) +# muscari использует disko и не имеет этого файла — это defense-in-depth для будущих хостов +hosts/*/hardware-configuration.nix \ No newline at end of file diff --git a/hosts/muscari/default.nix b/hosts/muscari/default.nix index a3d31b6..b201bcd 100644 --- a/hosts/muscari/default.nix +++ b/hosts/muscari/default.nix @@ -1,4 +1,4 @@ -# muscari — k3s single-node cluster на YC (Debian 12 → Nix через nixos-anywhere) +# muscari — k3s single-node cluster на YC (Debian 12 → NixOS 25.11 через nixos-install в tmux) # https://git.iscg.dev/mikl/nix-config { config, pkgs, lib, ... }: @@ -20,14 +20,14 @@ ]; }; - # Bootloader — extlinux (совместимо с YC BIOS boot) - boot.loader.grub.enable = false; - boot.loader.generic-extlinux-compatible.enable = true; + # Bootloader — systemd-boot (UEFI, требуется для YC standard-v3) + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; # fileSystems — определяется через disko (см. disk-config.nix) # Не задаём явно fileSystems."/" чтобы не конфликтовать с disko - # После nixos-anywhere первая установка может быть 26.05, + # После nixos-install первая установка 25.11, # потом не трогаем (NixOS convention) system.stateVersion = "25.11"; } \ No newline at end of file