2025-07-08 23:07:47 -05:00
2025-07-07 14:42:02 -05:00
2025-07-08 23:07:47 -05:00
2025-07-08 23:07:47 -05:00
2025-07-08 23:05:40 -05:00
2025-07-07 14:27:33 -05:00
2025-07-08 23:05:33 -05:00
2025-07-08 22:02:02 -05:00
2025-07-08 22:02:02 -05:00
t\P
2025-07-05 16:12:54 -05:00

Nix Sakamoto

A rewrite of the original Sakamoto NixOS configuration.

Installation

Installing Sakamoto Nix configuration may vary on your current operating system.

Hosts Description
hakase gaming desktop (linux)
sakamoto [unavailable] server that uses containers (linux)
nano [unavailable] windows configuration
macos macos configuration

Note: Replace ${Hosts} with one of the options from the table above.

Linux Installation

  1. Install Nix.
  2. Clone this directory.
    $ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos
    
  3. Create a hardware-configuration.conf
    $ sudo nixos-generate-config --dir ~/.config/nixos/hosts/${Hosts}/
    
  4. ⚠️ Modify config.nix that suits your configuration. Be sure to edit config.nix! Most especially myConfig.essentials.Username. Otherwise, your OS could break!!!
  5. Rebuild.
    $ sudo nixos-rebuild switch --flake ~/.config/nixos/hosts/#${Hosts}
    
  6. Install unstable channel (fixes pkgs.fish misconfiguration).
    $ nix-channel --add https://nixos.org/channels/nixos-unstable nixos nix-channel --update 
    

MacOS (Darwin) Installation

  1. Install Nix.
  2. Clone this directory.
    $ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos
    
  3. ⚠️ Modify config.nix that suits your configuration. Be sure to edit config.nix! Most especially myConfig.essentials.Username. Otherwise, configuration would not work!!!
  4. Rebuild.
    $ sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#macos
    
S
Description
A modular, flake-based NixOS configuration for hosts. Heavily inspired by OmarchyOS.
Readme 45 MiB
Languages
Nix 97.3%
Shell 2.7%