3.4 KiB
3.4 KiB
Host Naming Discrepancy Report
This report compares the current modules/hosts tree against the naming rules for new hosts in hosts.instructions.md.
Rules Checked
- The host directory slug should be the canonical host identity.
- A directory-backed host should prefer
default.nixas its main entrypoint. - The canonical slug should line up with the primary
hostnamebinding,flake.nixosConfigurations.<slug>, andnetworking.hostName. - A host-local Home Manager module should use the same slug.
- A standalone Home Manager configuration should prefer the key
"<username>@<slug>". - Host-local helper module names should be prefixed by the host slug.
Summary
- Recently normalized:
john-kde,omen-nixos. - Hosts that fit the new rules closely:
janus,john-kde,omen-nixos,test-nix. - Hosts with notable discrepancies:
john-p14s,soteria. - Approved exception:
john-pcdirectory uses immutable deployed slugjohn-pc-ubuntufor exported keys.
Detailed Discrepancies
john-p14s
- The main host export uses the canonical slug:
flake.nixosConfigurations.john-p14s. - The host-local helper modules are named
p14sConfigurationandp14sHardware, which drop thejohn-prefix and therefore do not use the full host slug. networking.hostnameuses the correct host value, but the option name differs from the dominantnetworking.hostNamespelling used elsewhere in this tree.
john-pc
- Approved exception for immutable deployed hostname:
- Directory slug is
john-pc, but exported keys and hostname bindings intentionally usejohn-pc-ubuntu. hostnamebinding,flake.modules.homeManager.<name>, andflake.homeConfigurationsare aligned tojohn-pc-ubuntu.- Shared SSH alias intentionally remains
john-pc-ubuntuinmodules/services/ssh.nix.
omen-nixos
- No active discrepancy after normalization:
- The directory slug,
flake.nixosConfigurationskey, host-local module keys, andnetworking.hostNameare now aligned toomen-nixos.
john-kde
- No active discrepancy after normalization:
- The directory slug,
hostnamebinding, host-local Home Manager module key, and standalone Home Manager key are now aligned tojohn-kde.
soteria
- Naming is mostly coherent across directory slug,
hostname,flake.nixosConfigurations.soteria, andflake.modules.homeManager.soteria. - The standalone Home Manager export is
flake.homeConfigurations.soteria, which does not follow the preferred"<username>@<slug>"form. - The main host entrypoint is
soteria.nixinstead of the preferreddefault.nix.
No Discrepancy Found
janus
- Directory slug,
hostname,flake.nixosConfigurations.janus, andnetworking.hostNameare aligned. - The host-local helper module
janus-cais clearly prefixed by the host slug.
test-nix
- The single-file host uses the same slug for the file stem,
hostname, andflake.nixosConfigurations.test-nix. - It does not define
networking.hostName, but it does not contradict the slug anywhere else.
Follow-up Candidates
- Rename
john-p14shelper module keys to include the full host slug (john-p14s-*) if strict slug consistency is desired. - Decide whether
soteriashould move todefault.nixand whether its standalone Home Manager key should includejohn@. - If
john-pc-ubuntuever becomes changeable, decide whether to rename the directory to match or keep this as a permanent exception.