Skip to content

Instantly share code, notes, and snippets.

@joepie91
Created August 18, 2017 12:19
Show Gist options
  • Save joepie91/406ed5b3b11902d3a97a9ce4f3288ab3 to your computer and use it in GitHub Desktop.
Save joepie91/406ed5b3b11902d3a97a9ce4f3288ab3 to your computer and use it in GitHub Desktop.
Bash function for printing system information for nixpkgs issues
function nixos-sysinfo {
echo "* System: $(nixos-version)"
echo "* Nix version: $(nix-env --version)"
echo "* Nixpkgs version: $(nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)"
echo "* Sandboxing enabled: $(grep build-use-sandbox /etc/nix/nix.conf | grep -oE 'true|false')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment