mirror of
https://github.com/cupcakearmy/nix-cli.git
synced 2025-12-07 22:35:03 +00:00
27 lines
509 B
Markdown
27 lines
509 B
Markdown
> Moved to https://github.com/cupcakearmy/nix/tree/main/cli
|
|
|
|
# Nix
|
|
|
|
Nix setup for server
|
|
|
|
## Install
|
|
|
|
```bash
|
|
# First time install
|
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
|
|
|
# Install / Update
|
|
nix run home-manager -- switch --flake github:cupcakearmy/nix-cli#root -b bkp
|
|
```
|
|
|
|
## Update
|
|
|
|
This can be run on any machine. Just update and then just rerun on the targets
|
|
|
|
```bash
|
|
nix flake update
|
|
|
|
# To test
|
|
nix run home-manager -- build --flake .#root
|
|
```
|