This commit is contained in:
Aadniz 2024-02-28 04:45:47 +03:00 committed by GitHub
commit c0d4278c31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -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: TLDR: You should™ be able to install my dotfiles to an existing UEFI NixOS system with the following script:
#+begin_src sh :noeval #+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 #+end_src
** Modules ** Modules

View file

@ -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. 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 #+BEGIN_SRC sh :noeval
# Install from gitlab # Install from gitlab
nix-run gitlab:librephoenix/nixos-config nix run gitlab:librephoenix/nixos-config
# Or install from github # Or install from github
nix-run github:librephoenix/nixos-config nix run github:librephoenix/nixos-config
# Or install from codeberg # Or install from codeberg
nix-run git+https://codeberg.org/librephoenix/nixos-config nix run git+https://codeberg.org/librephoenix/nixos-config
#+END_SRC #+END_SRC
The script will ask for sudo permissions at certain points, /but you should not run the script as root/. 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 #+begin_src sh :noeval
nix-shell -p git nix-shell -p git
#+end_src #+end_src
and then running: and then running:
#+BEGIN_SRC sh :noeval #+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 #+END_SRC
And if you want a single copy-paste solution: And if you want a single copy-paste solution:
#+begin_src sh :noeval #+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 #+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. 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.