Harden NixOS config defaults and setup guidance #4

Merged
Copilot merged 13 commits from copilot/review-nixos-setup-issues into main 2026-02-01 21:17:59 +00:00
Showing only changes of commit 4370c6a22d - Show all commits

View File

@@ -1,6 +1,12 @@
{ config, pkgs, inputs, system, hostname, username, ... }: { config, pkgs, inputs, system, hostname, username, ... }:
{ {
assertions = [
{
assertion = builtins.match "^[a-z_][a-z0-9_-]*$" username != null;
message = "username must be a simple system user name without path separators.";
}
];
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# BOOT # BOOT
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------