resadm
This commit is contained in:
@@ -7,8 +7,8 @@ A rewrite of the original Sakamoto NixOS configuration.
|
|||||||
| hakase | gaming desktop |
|
| hakase | gaming desktop |
|
||||||
| macos | darwin |
|
| macos | darwin |
|
||||||
|
|
||||||
|
**Note: Replace `${Hosts}` with one of the options from the table above.**
|
||||||
### Linux Installation
|
### Linux Installation
|
||||||
Note: Replace `${Hosts}` with one of the options from the table above.
|
|
||||||
|
|
||||||
1. Install [Nix](https://nixos.org).
|
1. Install [Nix](https://nixos.org).
|
||||||
2. Clone this directory.
|
2. Clone this directory.
|
||||||
@@ -17,9 +17,25 @@ Note: Replace `${Hosts}` with one of the options from the table above.
|
|||||||
```
|
```
|
||||||
3. Create a hardware-configuration.conf
|
3. Create a hardware-configuration.conf
|
||||||
```sh
|
```sh
|
||||||
$ sudo nixos-generate-config --dir ~/.config/nixos/hosts/${Hosts}
|
$ sudo nixos-generate-config --dir ~/.config/nixos/hosts/${Hosts}/
|
||||||
```
|
```
|
||||||
4. Rebuild.
|
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
|
```sh
|
||||||
$ sudo nixos-rebuild switch --flake ~/.config/nixos/hosts/#${Hosts}
|
$ 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
|
||||||
|
```
|
||||||
|
### MacOS (Darwin) Installation
|
||||||
|
1. Install [Nix](https://nixos.org).
|
||||||
|
2. Clone this directory.
|
||||||
|
```sh
|
||||||
|
$ git clone [https://git.sakamoto.dev/kenji/nixos.git](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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user