Skip to content

workstation

The workstation host uses home-manager. knixl writes one file for it. The Nix below is the golden test output, so it is exactly what knixl emits.

hosts/workstation.kdl
host "workstation" {
system "x86_64-linux"
home-manager "wes" state-version="24.11" {
session-var "EDITOR" "nvim"
session-var "PAGER" "less"
program "git"
program "fish"
}
}
generated/hosts/workstation.nix
# Generated by knixl 1.5.2 from hosts/workstation.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 = "workstation";
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users."wes".home.stateVersion = "24.11";
home-manager.users."wes".home.sessionVariables."EDITOR" = "nvim";
home-manager.users."wes".home.sessionVariables."PAGER" = "less";
home-manager.users."wes".programs."git".enable = true;
home-manager.users."wes".programs."fish".enable = true;
}