64 lines
2.2 KiB
Markdown
64 lines
2.2 KiB
Markdown
# 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](https://nixos.org).
|
|
2. Clone this directory.
|
|
```sh
|
|
$ git clone https://git.sakamoto.dev/kenji/nixos.git ~/.config/nixos
|
|
```
|
|
3. Create a hardware-configuration.conf
|
|
```sh
|
|
$ 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.
|
|
```sh
|
|
$ sudo nixos-rebuild switch --flake ~/.config/nixos/hosts/#${Hosts}
|
|
```
|
|
6. Install unstable channel (fixes `pkgs.fish` misconfiguration).
|
|
```sh
|
|
$ nix-channel --add https://nixos.org/channels/nixos-unstable nixos nix-channel --update
|
|
```
|
|
7. (Optional) You can install `proton-ge` by running the following command:
|
|
```sh
|
|
protonup
|
|
```
|
|
8. (Optional) Add Decky Loader for Steam via this command:
|
|
```sh
|
|
touch ~/.steam/steam/.cef-enable-remote-debugging
|
|
|
|
```
|
|
### MacOS (Darwin) Installation
|
|
1. Install [Nix](https://nixos.org).
|
|
2. Clone this directory.
|
|
```sh
|
|
$ 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.
|
|
```sh
|
|
$ sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nixos#macos
|
|
```
|
|
|
|
## Problems:
|
|
* XDG defaults (file manager default is terminal)
|
|
* File Manager must be TUI
|
|
* Bluetooth and WiFi should open at TUI
|
|
* Steam and Heroic incompatible
|
|
* Broken switchwall.sh
|
|
* Box fonts
|