This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
30
docs/getting-started/create-nix-config.md
Normal file
30
docs/getting-started/create-nix-config.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Create your own nix-config flake
|
||||
|
||||
Create an empty directory and apply a [nix-config template](https://git.sid.ovh/sid/synix/tree/master/templates/nix-config) to it:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.config/nixos
|
||||
cd ~/.config/nixos
|
||||
nix flake init -t "git+https://git.sid.ovh/sid/synix#templates.TEMPLATE"
|
||||
```
|
||||
|
||||
Available templates are:
|
||||
- hetzner-amd
|
||||
- hyprland
|
||||
- pi4
|
||||
- server
|
||||
- vm-uefi
|
||||
|
||||
> Note: You do not have to use `~/.config/nixos`, but configuration related scripts in this repository will use this directory as the default nix-config flake directory.
|
||||
|
||||
Alternatively, use this flake's create script:
|
||||
|
||||
```bash
|
||||
nix run "git+https://git.sid.ovh/sid/synix#create" -- -t TEMPLATE -u YOUR_USER -h YOUR_HOSTNAME
|
||||
```
|
||||
|
||||
Check:
|
||||
|
||||
```bash
|
||||
nix run "git+https://git.sid.ovh/sid/synix#create" -- --help
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue