sudo su
cfdisk
# /dev/sda1 512M EFI system
# /dev/sda2 2G Linux Swap
# /dev/sda3 - Linux File
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
ln -sF "$PWD/nixos" /mnt/etc/nixos
nixos-install
reboot
login as root and `passwd arpple`
mkdir -p ~/.config/nixpkgs
ln -sF "$PWD/home.nix" $HOME/.config/nixpkgs/home.nix
nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager
nix-channel --update
# relogin
nix-shell '<home-manager>' -A install
home-manager switch
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
sqlite error when running non-exists command
sudo nix-channel --update
connect to postgres with alias helper
psql-connect
enter sql
ALTER USER postgres PASSWORD 'postgres';
use local node instead of global
nix-shell -p nodejs-16_x # or other version
npm install
systemctl --user enable --now emacs
run select theme again
rofi-select-theme