export NIX_CONFIG="experimental-features = nix-command flakes"
sudo mount /dev/disk/by-label/nixos /mnt
# in case of gpt, flag a f32 partition with esp,boot
sudo mkdir -p /mnt/boot
sudo mount /dev/disk/by-label/BOOT /mnt/boot
sudo nixos-generate-config --root /mnt
sudo nixos-rebuild switch --flake '.#hostname'
# or
sudo nixos-install --flake '.#hostname'
To apply home configrationsm run, this is with standalone installer. If you don’t have home-manager installed, try,
nix shell nixpkgs#home-manager
home-manager switch --flake '.#hostname@hostname'
To install and run applications.
nix-env -iA nixos.htop
# To list all the installed envs.
nix-env
nix-env -uninstall htop
# *man configrations.nix* for more docs.
sudo nix-channel --list
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable
sudo nix-channel --update
mkdir ~/nodejs_globals
npm config set prefix '~/nodejs_globals'
npm install -g instant-markdown-d
# ln -s ~/nodejs_globals/bin/ ~/bin # optional, path already in zshrc
For all the glyphs and symbols please, copy all the fonts to nixos font directory. ~/.local/share/fonts. see nixos fonts for more details.
Wireless Driver not supported on vintage host. rtl8723be. Wifi not working
- https://laravelcode.com/post/wifi-networks-device-not-ready-error-solve-in-linux
- https://github.com/rtlwifi-linux/rtlwifi_new
mkdir -p /lib/firmware/rtlwifi
git clone https://github.com/rtlwifi-linux/rtlwifi_new.git
cd firmware/rtlwifi
# and copy either rtl8723befw.bin rtlwifi/
cp rtl8723befw.bin rtlwifi/ /lib/firmware
# and then reboot it worked yay !