• 0 Posts
  • 6 Comments
Joined 9 months ago
cake
Cake day: May 6th, 2025

help-circle
  • 🤦🏻‍♂️

    You don’t seem to understand that everything you said in your initial comment is completely possible (trivial) with those nix commands I showed you.

    Podman:

    • spin up a podman to use bash
    • apt install git
    • git checked those folders.
    • deleted the container

    nix:

    • nix-shell -p git
    • git checked those folders
    • close the terminal/garbage collect

    Does it make sense now? Or were you just really vague in your original comment and I misunderstood what you were even doing with your commands?



  • nix-shell -p git
    

    Or some even fancier ones:

    nix-store -qR $(nix-build '<nixpkgs>' -A git --no-out-link)
    

    or this command (which nix people avoid generally because it creates files outside of the store):

    nix path-info -rSh $(nix-build '<nixpkgs>' -A git --no-out-link)
    

    or

    nix-env -p /tmp/clean-profile -iA nixpkgs.git && nix-store -qR /tmp/clean-profile
    
    
    # then
    
    rm /tmp/clean-profile* 
    
    # to get rid of the temp files