1.1 KiB
1.1 KiB
Sakamoto NixOS
Sakamoto NixOS is built with various profiles intended for reproducibility.
Available Hosts
- MacBook M series
- Linux
Installation
- Install Nix.
- Clone this git repository.
git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos && cd ~/.config/nixos/
- Inside the
~/.config/nixos/directory, copyinfo.default.nixand rename it toinfo.local.nix.
cp ~/.config/nixos/info.default.nix ~/.config/nixos/info.local.nix
🚨 CRITICAL STEP: Edit info.local.nix to your suitable needs, especially your username!. Failure to do so may lock you out of your system. If you accidentally created the biscuit user, you will need to enter that username and its password on next login. The password is <PLACEHOLDER>.
4. Execute the following command based on your host:
- MacBook M series:
sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#macos
- Linux:
sudo nixos-rebuild --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#desktop