|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
####### # # E-scripts on nix. # # Note 1: use the eev command (defined in eev.el) and the # ee alias (in my .zshrc) to execute parts of this file. # Executing this file as a whole makes no sense. # An introduction to eev can be found here: # # (find-eev-quick-intro) # http://anggtwu.net/eev-intros/find-eev-quick-intro.html # # Note 2: be VERY careful and make sure you understand what # you're doing. # # Note 3: If you use a shell other than zsh things like |& # and the for loops may not work. # # Note 4: I always run as root. # # Note 5: some parts are too old and don't work anymore. Some # never worked. # # Note 6: the definitions for the find-xxxfile commands are on my # .emacs. # # Note 7: if you see a strange command check my .zshrc -- it may # be defined there as a function or an alias. # # Note 8: the sections without dates are always older than the # sections with dates. # # This file is at <http://anggtwu.net/e/nix.e> # or at <http://anggtwu.net/e/nix.e.html>. # See also <http://anggtwu.net/emacs.html>, # <http://anggtwu.net/.emacs[.html]>, # <http://anggtwu.net/.zshrc[.html]>, # <http://anggtwu.net/escripts.html>, # and <http://anggtwu.net/>. # ####### # «.single-user» (to "single-user") # (find-es "lean" "mdbook") https://en.wikipedia.org/wiki/Nix_(package_manager) https://github.com/NixOS/nix https://nixos.org/manual/nix/stable/ apti nix # (find-status "nix-setup-systemd") # (find-vldifile "nix-setup-systemd.list") # (find-udfile "nix-setup-systemd/") # (find-status "nix-bin") # (find-vldifile "nix-bin.list") # (find-udfile "nix-bin/") https://dev.to/arnu515/getting-started-with-nix-and-nix-flakes-mml https://hub.docker.com/r/nixos/nix https://hub.docker.com/r/nixos/nix https://zero-to-nix.com/ https://zero-to-nix.com/start/install/ https://nixos.org/download/#nix-install-linux ##### # # single-user # 2026jul08 # ##### # «single-user» (to ".single-user") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) sudo du -ch -d 2 /nix/ sudo rm -Rf /nix/ curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --no-daemon sudo du -ch -d 2 /nix/ # (find-fline "~/" ".nix-profile") # (find-fline "~/.local/state/nix/profiles/") # (find-fline "~/.nix-profile/etc/profile.d/") # (find-fline "~/.nix-profile/etc/profile.d/nix.sh") # (code-c-d "nixprofiled" "~/.nix-profile/etc/profile.d/") # (find-nixprofiledfile "") # (find-nixprofiledfile "nix.sh") # (find-nixprofiledfile "nix.sh" "export MANPATH=") # (find-fline "~/.nix-profile/bin/") # (find-fline "~/.nix-profile/share/") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) . ~/.nix-profile/etc/profile.d/nix.sh w nix-shell nix-shell -p yt-dlp echo $PATH echo $PATH | tr : '\n' w yt-dlp yt-dlp --version nix-shell cd /tmp/ yt-dlp "https://www.youtube.com/watch?v=yaUYF7d61CM" * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) . ~/.nix-profile/etc/profile.d/nix.sh nix-shell -p yt-dlp --run --version nix run yt-dlp --version nix --help nix-shell -p yt-dlp --run --version # (find-man "nix") w nix . ~/.nix-profile/etc/profile.d/nix.sh set | grep NIX echo $MANPATH echo $PATH nix profile list # Installation finished! To ensure that the necessary environment # variables are set, either log in again, or type . /home/edrx/.nix-profile/etc/profile.d/nix.sh # Local Variables: # coding: utf-8-unix # End: