How To Install ZaneyOS
Table of Contents
ZaneyOS 2.3 Docs - This article is part of a series.
⬇️ Install #
📜 Script: #
This is the easiest and recommended way of starting out. The script is not meant to allow you to change every option that you can in the flake or help you install extra packages. It is simply here so you can get my configuration installed with as little chances of breakages and then fiddle to your hearts content!
Simply copy this and run it:
nix-shell -p git curl
Then:
sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)
The install process will look something like this:
After the install completes your environment will probably look broken. Just reboot and you will see this as your login:
Then after login you should see a screen like this:
🦽 Manual: #
- Run this command to ensure Git & Vim are installed:
nix-shell -p git vim
- Clone this repo & enter it:
cd && git clone https://gitlab.com/zaney/zaneyos.git
cd zaneyos
- You should stay in this folder for the rest of the install
- Create the host folder for your machine(s) like so:
cp -r hosts/default hosts/<your-desired-hostname>
-
Edit
hosts/<your-desired-hostname>/variables.nix
. -
Edit
flake.nix
and fill in your username, profile, and hostname. -
Generate your hardware.nix like so:
nixos-generate-config --show-hardware-config > hosts/<your-desired-hostname>/hardware.nix
- Run this to enable flakes and install the flake replacing hostname with whatever you put as the hostname:
NIX_CONFIG="experimental-features = nix-command flakes"
sudo nixos-rebuild switch --flake .#profile
Now when you want to rebuild the configuration you have access to an alias called fr
that will rebuild the flake and you do not have to be in the zaneyos
folder for it to work.
Hope you enjoy!