Files
nix-config/README.md
2024-04-16 22:43:33 +02:00

42 lines
534 B
Markdown

# :snowflake: NixOS Configuration
Here is my global NixOS configuration
## 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/nix-config ~/.dots
```
```bash
cd ~/.dots
```
## Usage
Apply system configuration
```bash
sudo nixos-rebuild switch --flake .#host
```
Apply user configuration
```bash
home-manager switch --flake .#user@host
```