pinned
The pinned 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" { system "x86_64-linux" package "htop" version="3.2.1" package "ripgrep"}Generated
Section titled “Generated”# Generated by knixl 1.5.2 from hosts/pinned.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"; environment.systemPackages = [ (import (builtins.fetchGit { rev = "0000000000000000000000000000000000000abc"; shallow = true; url = "https://github.com/NixOS/nixpkgs"; }) { system = pkgs.system; } ).htop pkgs.ripgrep ];}