9cc45e426d4c70f92f1696e777e3c8c774e3f3a1
Sakamoto NixOS
Sakamoto NixOS is built with various profiles intended for reproducibility.
Available Hosts
- MacBook M series
- Linux
Installation
-
Install Nix.
-
Ensure Nix is installed properly by running the following (this also gives you
nanofor editing later):nix-shell -p nano -
Clone the git repository:
git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos && cd ~/.config/nixos/ -
Copy
info.default.nixand rename it toinfo.local.nix:cp ~/.config/nixos/info.default.nix ~/.config/nixos/info.local.nix🚨 CRITICAL STEP: Edit
info.local.nix:nano ~/.config/nixos/info.local.nixModify it to fit your system — especially your username.
If you accidentally leave the defaultbiscuit, that user will be created.
Login password forbiscuitis<PLACEHOLDER>. -
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
-
Description
Languages
Nix
97.3%
Shell
2.7%