revamped nix for scalability

This commit is contained in:
2024-04-16 21:37:22 +02:00
parent 06fd8714f9
commit 5e9a68a9d5
13 changed files with 635 additions and 377 deletions

View File

@@ -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
```