Skip to content

NixOS with Homemanager: Hyprland, Zsh, NeoVim, dev shells

Notifications You must be signed in to change notification settings

ducnguyen96/gorgeos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Repository Contents

  • Flake: configurations for code formatting, and pre-commit hooks.
  • Home: Home-Manager configurations.
  • Hosts: Configurations specific to individual hosts.
  • Lib: Personal library and utilities.
  • Modules: Shared system-wide modules.
  • pkgs: Customized and additional packages.

🔨 Install

After boot to Nix installation.

[Optional] Connect wifi

sudo su
systemctl start wpa_supplicant
wpa_cli
scan
add_network
set_network 0 ssid "wifi-name"
set_network 0 psk "wifi-password"
enable_network 0
save_config
reconnect

Then CTRL-D to exit.

Clone repo

nix-shell -p git
git clone https://ducnguyen96/gorgeos

Disk partioning and mounting

Customize host and home

Host

mv gorgeos /mnt
cd /mnt/gorgeos

Then generate your hardware config

nixos-generate-config --root /mnt

Copy the hardware config to your host

cp /mnt/etc/nixos/hardware-configuration.nix hosts/rtx2070

nixos-install

After updating host and home as you like you can install the whole thing with

rtx2070 here is your host

nixos-install --flake .#rtx2070

It will take a while. Then after that you can reboot.

Daily usages

Rebuild

# note that rebuild script assume your flake is in the same directory as this repo which is $HOME/gorgeos
rebuild

Delete system old generations

sudo nix-collect-garbage -d

Delete home old generations

nix-collect-garbage -d

Waydroid

Init

Source: https://docs.waydro.id/faq/using-custom-waydroid-images Noted: You can click on Problem Downloading button to choose other mirror

Usage

Start the container

# Start the WayDroid LXC container
sudo systemctl start waydroid-container

# You'll know it worked by checking the journal You should see "Started Waydroid Container".
sudo journalctl -u waydroid-container

# Start WayDroid session
# You'll know it is finished when you see the message "Android with user 0 is ready".
waydroid session start

General usage

# Start Android UI
waydroid show-full-ui

# List Android apps
waydroid app list

# Start an Android app
waydroid app launch <application name>

# Install an Android app
waydroid app install </path/to/app.apk>

# Enter the LXC shell
sudo waydroid shell

# Overrides the full-ui width
waydroid prop set persist.waydroid.width 608

About

NixOS with Homemanager: Hyprland, Zsh, NeoVim, dev shells

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published