My own NixOS configurations
- Clone this repository to any location you want.
git clone https://github.com/MaikoTan/nixos-config.git /usr/nixos-config
-
Create partitions for NixOS if you haven't done so.
-
Run the following command to install NixOS.
nixos-install --option experimental-features 'nix-command flakes' --flake "/usr/nixos-config#<hostname>"
- If you are not using first-time installation, run the following command to switch to the new configuration.
- If you encounter network issues, you may also try the mirror with option
--mirror
.
- If you encounter network issues, you may also try the mirror with option
nixos-rebuild switch --option experimental-features 'nix-command flakes' --flake ".#<hostname>"
- Reboot your system.
reboot
- Run the following command to update the system.
./switch.fish
If you have changed anything managed by dconf
, make sure to run the following command (in fish shell) to update the dconf
config.
./build.fish
This project is licensed under MIT License.