Skip to content

konrad/NixOS_installation_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

NixOS installation script

Plain NixOS installation shell script to prepare a drive with LVM and LUKS (full disc encryption) and to install a very basic NixOS system.

Boot the NixOS install iso, copy the script install_nixos.sh into the system e.g.

curl https://raw.githubusercontent.com/konrad/NixOS_installation_script/main/install_nixos.sh > install_nixos.sh

or

curl -L https://bit.ly/3B9upFp > install_nixos.sh

and adapt variables in the script as needed. Then run the script:

sudo sh install_nixos.sh all

Alternatively, you can run its steps separately.

sudo sh install_nixos.sh generate_partitions
sudo sh install_nixos.sh generate_luks_volume_and_format
sudo sh install_nixos.sh mount_fs_and_generate_config
sudo sh install_nixos.sh adapt_config
sudo sh install_nixos.sh install_nixos

The adaption of the configuration.nix is rather basic and need further improvements later.

About

A simple NixOS installation script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages