A fast installer for my personal NixOS setup.
Find a file
2025-04-14 19:05:52 -06:00
src working logic with nvme 2025-04-14 19:05:52 -06:00
.gitignore it works? maybe? 2025-04-11 07:50:04 -06:00
Cargo.lock add nix crate 2025-04-09 20:54:48 -06:00
Cargo.toml add mount feature for nix crate 2025-04-10 20:16:34 -06:00
README.md update the README 2025-04-11 18:02:27 -06:00
shell.nix add btrfs support to shell 2025-04-09 21:14:25 -06:00

The NixOS Installer

This installer is named after my doggo Onyxia.

At the core of this installer it does the following:

  • Partition the drive of your choice using the rsfdisk crate.
  • Uses flake.nix to set certain modules depending on the system like nixos-hardware for the Pinebook Pro
  • Installs a base of NixOS (configuration.nix)

nix files are from this repo but that can be changed as needed.

This sets the hashedPassword to my own so you will need to update it to match your own as well as the username. I created the hash with this command:

mkpasswd -m sha-512

Development

Clone the repository

git clone https://gitlab.com/ahoneybun/nyxi-installer.git

Enter the repository that you just cloned

cd nyxi-installer

Enter nix-shell

This is if you are already running NixOS on your system where development will take place. This will install the needed system packages, set environment variables and such for development.

nix-shell

Building and testing

You can use normal cargo commands like:

  • cargo test
  • cargo build
  • cargo run

NOTE: you will need to build the program and run it with sudo currently so cargo run is not the best for testing.