Skip to content

refactor: use nixos-facter module from nixpkgs instead of flake input - #70

Merged
phorcys420 merged 1 commit into
mainfrom
phorcys/facter-from-nixpkgs
Aug 24, 2026
Merged

refactor: use nixos-facter module from nixpkgs instead of flake input#70
phorcys420 merged 1 commit into
mainfrom
phorcys/facter-from-nixpkgs

Conversation

@phorcys420

Copy link
Copy Markdown
Member

What

The nixos-facter NixOS module was upstreamed into nixpkgs (nixos/modules/hardware/facter, registered in module-list.nix) and is now imported automatically. It exposes the same hardware.facter.reportPath option our hosts already set, so the nixos-facter-modules flake input is redundant.

This drops the input and its mkHost module import, relying on the nixpkgs-provided module instead. The nixos-facter CLI package was already sourced from nixpkgs, so it is unchanged.

Changes

  • flake.nix: remove nixos-facter-modules input, outputs arg, and the nixosModules.facter import.
  • flake.lock: regenerated (input node removed).
  • README.md / agents.md: update references.

Validation

Ran in a nixos/nix container (nixos-25.11):

  • coder-thinkcentre and all image hosts (_appliance-iso, _appliance-disk, _installer-iso) evaluate to a toplevel derivation, confirming hardware.facter.reportPath still resolves.
  • make fmt/check and make lint (statix / deadnix / shellcheck) pass with 0 changes.

Note

The nixpkgs module imports fewer submodules than the flake version did (covers disk, firmware, graphics, keyboard, networking, system, virtualisation; the flake version also had bluetooth, boot, camera, debug, fingerprint). coder-thinkcentre keeps hardware-configuration.nix as a backstop, so no functional regression there. Worth keeping in mind for any future disko-only host that relies purely on facter.


Opened by Coder Agents on behalf of @phorcys420.

The nixos-facter NixOS module was upstreamed into nixpkgs
(nixos/modules/hardware/facter, in module-list.nix) and is imported
automatically. It exposes the same hardware.facter.reportPath option the
hosts already set, so the nixos-facter-modules flake input is redundant.

Drop the input and its module import; the nixos-facter CLI package was
already sourced from nixpkgs. Update README/agents.md references.
@phorcys420
phorcys420 marked this pull request as ready for review August 24, 2026 21:32
@phorcys420
phorcys420 merged commit ef26c27 into main Aug 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant