mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:06:11 +01:00
revamped nix for scalability
This commit is contained in:
39
README.md
39
README.md
@@ -1,4 +1,41 @@
|
||||
# NixOS Configuration
|
||||
|
||||
Here is my global NixOS configuration
|
||||
It is still heavly work in progress as I learn how this OS works
|
||||
|
||||
## Install
|
||||
|
||||
Check if Nix version is >= 2.4
|
||||
|
||||
```bash
|
||||
nix --version
|
||||
```
|
||||
|
||||
Allow experimental `flakes`
|
||||
|
||||
```bash
|
||||
export NIX_CONFIG="experimental-features = nix-command flakes"
|
||||
```
|
||||
|
||||
Clone this repo
|
||||
|
||||
```bash
|
||||
git clone https://github.com/eRgo35/nixos ~/.dots
|
||||
```
|
||||
|
||||
```bash
|
||||
cd ~/.dots
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Apply system configuration
|
||||
|
||||
```bash
|
||||
sudo nixos-rebuild switch --flake .#hostname
|
||||
```
|
||||
|
||||
Apply user configuration
|
||||
|
||||
```bash
|
||||
home-manager switch --flake .#mike@zion
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user