From 38f311423c82db6cf693a3c6425bc99796a60044 Mon Sep 17 00:00:00 2001 From: Aadniz <8147434+Aadniz@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:44:05 +0100 Subject: [PATCH] doc: fix 'nix run', not 'nix-run' --- README.org | 2 +- install.org | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 273bfdc..f11bef0 100644 --- a/README.org +++ b/README.org @@ -23,7 +23,7 @@ I wrote some reinstall notes for myself [[./install.org][here (install.org)]]. TLDR: You should™ be able to install my dotfiles to an existing UEFI NixOS system with the following script: #+begin_src sh :noeval -nix-shell -p git --command "nix-run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes" +nix-shell -p git --command "nix run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes" #+end_src ** Modules diff --git a/install.org b/install.org index 670c173..86947b5 100644 --- a/install.org +++ b/install.org @@ -9,32 +9,32 @@ I wrote a quick automated install script at [[./install.sh][install.sh]]. It ess I'll eventually™ add the ability to supply arguments to this script as well. -The quickest way to install is running the install script directly from the remote git repo using =nix-run=, which is essentially just one of the following: +The quickest way to install is running the install script directly from the remote git repo using =nix run=, which is essentially just one of the following: #+BEGIN_SRC sh :noeval # Install from gitlab -nix-run gitlab:librephoenix/nixos-config +nix run gitlab:librephoenix/nixos-config # Or install from github -nix-run github:librephoenix/nixos-config +nix run github:librephoenix/nixos-config # Or install from codeberg -nix-run git+https://codeberg.org/librephoenix/nixos-config +nix run git+https://codeberg.org/librephoenix/nixos-config #+END_SRC The script will ask for sudo permissions at certain points, /but you should not run the script as root/. -If the above =nix-run= command gives you an error, odds are you either don't have =git= installed, or you haven't enabled the experimental features in your Nix config (=nix-command= and =flakes=). To get the command to install properly, you can first enter a shell with =git= available using: +If the above =nix run= command gives you an error, odds are you either don't have =git= installed, or you haven't enabled the experimental features in your Nix config (=nix-command= and =flakes=). To get the command to install properly, you can first enter a shell with =git= available using: #+begin_src sh :noeval nix-shell -p git #+end_src and then running: #+BEGIN_SRC sh :noeval -nix-run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes +nix run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes #+END_SRC And if you want a single copy-paste solution: #+begin_src sh :noeval -nix-shell -p git --command "nix-run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes" +nix-shell -p git --command "nix run gitlab:librephoenix/nixos-config --extra-experimental-features nix-command --extra-experimental-features flakes" #+end_src At a certain point in the install script it will open =nano= (or whatever your $EDITOR is set to) and ask you to edit the =flake.nix=. You can edit as much or as little of the config variables as you like, and it will continue the install after you exit the editor.