mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-18 22:08:16 +01:00
environment.enableAllTerminfo installs every terminal's terminfo, including rxvt-unicode, which no longer builds with GCC 16 (NixOS/nixpkgs#568896). Install just the terminals we use (alacritty, foot, ghostty, kitty) instead. This also makes the aarch64 jasper workaround unnecessary.
33 lines
1.3 KiB
Nix
33 lines
1.3 KiB
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
# Secure by default: firewall ON everywhere. Servers run the same shared
|
|
# firewall (modules/nixos/base/networking/firewall.nix) as every other host,
|
|
# as defence in depth behind the router.
|
|
networking.firewall.enable = lib.mkDefault true;
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
# Secure by default: X11 forwarding off everywhere; desktops re-enable it
|
|
# in modules/nixos/desktop/ssh.nix (needed for GUI forwarding).
|
|
X11Forwarding = lib.mkDefault false;
|
|
# root user is used for remote deployment, so we need to allow it
|
|
PermitRootLogin = lib.mkDefault "prohibit-password";
|
|
PasswordAuthentication = false; # disable password login
|
|
};
|
|
openFirewall = true;
|
|
};
|
|
|
|
# Terminfo entries for the terminals we actually use, so `$TERM` resolves on
|
|
# hosts we SSH into. This replaces `environment.enableAllTerminfo`, which
|
|
# installs every terminal's terminfo — including rxvt-unicode, which currently
|
|
# fails to build with GCC 16 (https://github.com/NixOS/nixpkgs/issues/568896).
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-26.05/nixos/modules/config/terminfo.nix
|
|
environment.systemPackages = [
|
|
pkgs.alacritty.terminfo
|
|
pkgs.foot.terminfo
|
|
pkgs.ghostty.terminfo
|
|
pkgs.kitty.terminfo
|
|
];
|
|
}
|