1.6 KiB
1.6 KiB
NixOS Sakamoto
A rewrite of the original Sakamoto NixOS configuration.
Getting Started
| Hosts | Description |
|---|---|
| hakase | gaming desktop |
| macos | darwin |
Note: Replace ${Hosts} with one of the options from the table above.
Linux Installation
- Install Nix.
- Clone this directory.
$ git clone [https://git.sakamoto.dev/kenji/nixos.git](https://git.sakamoto.dev/kenji/nixos.git) ~/.config/nixos - Create a hardware-configuration.conf
$ sudo nixos-generate-config --dir ~/.config/nixos/hosts/${Hosts}/ - ⚠️ Modify
config.nixthat suits your configuration. Be sure to editconfig.nix! Most especiallymyConfig.essentials.Username. Otherwise, your OS could break!!! - Rebuild.
$ sudo nixos-rebuild switch --flake ~/.config/nixos/hosts/#${Hosts} - Install unstable channel (fixes
pkgs.fishmisconfiguration).
nix-channel --add https://nixos.org/channels/nixos-unstable nixos nix-channel --update
MacOS (Darwin) Installation
- Install Nix.
- Clone this directory.
$ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos - ⚠️ Modify
config.nixthat suits your configuration. Be sure to editconfig.nix! Most especiallymyConfig.essentials.Username. Otherwise, configuration would not work!!! - Rebuild.
$ sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#macos