This repository contains my personal configuration files (dotfiles) managed using Nix Flakes. It supports both macOS and NixOS on a WSL2 subsystem in Windows.
⚠️ It's important to understand what the code does before applying to your own system. It has a learning curve to use Nix, take action rigorously!
Prerequistes:
Clone the Repository:
git clone https://github.com/xixiaofinland/dotfiles-nix.git ~/dotfiles-nix
cd ~/dotfiles-nix
Activate Flakes:
experimental-features = nix-command flakes
to your ~/.config/nix/nix.conf
, or whatever way to enable the the flake
feature.flake
should have been auto-enabled for you.Apply Configurations: In NixOS:
sudo nixos-rebuild switch --flake ~/dotfiles-nix/
In MacOS:
nix run nix-darwin -- switch --flake ~/dotfiles-nix/
Feel free to open issues or submit pull requests. Contributions are welcome!
This repository is licensed under the MIT License.