{ config, pkgs, ... }: let config-dir="configs/nix-config"; in pkgs.writeScriptBin "nixos-rebuild" '' #!${pkgs.dash}/bin/dash HOSTNAME="''${HOSTNAME:-''$(hostname)}" export NIXOS_CONFIG="${config.home.homeDirectory}/${config-dir}/''${HOSTNAME}.nix" ${pkgs.nixos-rebuild}/bin/nixos-rebuild "$@" ''