Created
August 18, 2017 12:19
-
-
Save joepie91/406ed5b3b11902d3a97a9ce4f3288ab3 to your computer and use it in GitHub Desktop.
Bash function for printing system information for nixpkgs issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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