Files
hydenix/docs/installation.md
2025-11-01 10:30:13 +09:00

1.6 KiB

NixOS

installation

Caution

the templated flake is designed for a minimal install of nixos. install nixos first, then follow the instructions below.

1. initialize the flake template

# create a new directory and initialize the template
mkdir hydenix && cd hydenix
nix flake init -t github:richen604/hydenix

2. configure your system

edit configuration.nix following the detailed comments:

3. generate hardware configuration

sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix

4. initialize git repository

git init && git add .

we do this because flakes must be managed via git. and its good practice to version control your configuration

5. build and switch to the new configuration

sudo nixos-rebuild switch --flake .#hydenix

Note

if you made mistakes, it will fail here. try following:

6. launch hydenix

reboot and log in.

Important

do not forget to set your password

passwd

you can generate the theme cache with the below:

hyde-shell reload