pinned-override
The pinned-override host uses package. knixl writes one file for it. The Nix below is the golden test output, so it is exactly what knixl emits.
host "pinned-override" { system "x86_64-linux" package "htop" version="3.2.1"}Generated
Section titled “Generated”# Generated by knixl 1.5.2 from hosts/pinned-override.kdl# Do NOT edit. Regenerate from the KDL source.# Overrides: add a sibling module and use lib.mkForce / lib.mkAfter.{ config, lib, pkgs, ...}:{ nixpkgs.hostPlatform = "x86_64-linux"; networking.hostName = "pinned-override"; environment.systemPackages = [ ( let _pin = (import (builtins.fetchGit { rev = "0000000000000000000000000000000000000abc"; shallow = true; url = "https://github.com/NixOS/nixpkgs"; }) { system = pkgs.system; } ).htop; in pkgs.htop.overrideAttrs ( { ... }: { src = _pin.src; version = _pin.version; } ) ) ];}