0xKyran / nixos-mobile

MIT License
3 stars 0 forks source link

nixos-mobile

Welcome to my NixOS Mobile Configuration! This repository represents my personal NixOS configuration for my oneplus6, crafted to suit my needs and preferences. I have included the steps I took to get NixOS running on my phone. I hope you find this useful!

⭐ & ❤️ from: 0xKyran

note: The repo requires a lot of cleanup, but it works for now.

Hardware

Requirements

Recommended apps:

note: if you dont have an AARCH machine see aws-server

installation

  1. setup your phone:

note: this will wipe and reset your phone and you will need to re-enable developer options and USB debugging

  1. Setup partitions

aws-server

If you dont have an AARCH64 machine you can use an AWS server to build the images.

  1. create an AWS server with the following specs:
    • t4g.[instance size]
    • 80GB storage
    • nixOS AARCH64 image, see amis in Ami-list
    • SSH access, with a key you have access to (with port 22 open in your security group)

This is the configuration I used: configuration.nix

  1. ssh into your server
  2. follow the installation steps

note: You have to use a aarch64 instance, I used t4g.2xlarge but you can use a smaller instance if you want.

note: You will need some storage, I used 80GB but you can use less if you want.

note: Bigger instances will build faster but have a higher cost per hour.