mirror of
				https://github.com/librephoenix/nixos-config
				synced 2025-11-04 18:04:00 +05:30 
			
		
		
		
	Merge 38f311423c into d1f9153276
				
					
				
			This commit is contained in:
		
						commit
						e9951d4d7a
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										14
									
								
								install.org
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								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.
 | 
					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.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue