Update readme

This commit is contained in:
Jan Kremer 2026-02-18 17:19:49 +01:00
parent 68e97f5dda
commit 7a4639c50b
No known key found for this signature in database

View file

@ -6,21 +6,15 @@
```sh ```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
git clone ssh://git@codeberg.org/kremer/nix-config.git ~/.config/nix
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
git clone ssh://git@codeberg.org/kremer/nix-config.git ~/.config/nix
nix run nix-darwin -- switch --flake ~/.config/nix nix run nix-darwin -- switch --flake ~/.config/nix
``` ```
### Switch ### Switch
```sh ```sh
darwin-rebuild switch --flake ~/.config/nix nh darwin switch
```
### Update
```sh
nix flake update --commit-lock-file ~/.config/nix
``` ```
## NixOS setup ## NixOS setup
@ -29,16 +23,18 @@ nix flake update --commit-lock-file ~/.config/nix
```sh ```sh
git clone ssh://git@codeberg.org/kremer/nix-config.git ~/.config/nix git clone ssh://git@codeberg.org/kremer/nix-config.git ~/.config/nix
sudo nixos-rebuild switch --flake ~/.config/nix
``` ```
### Switch ### Switch
```sh ```sh
sudo nixos-rebuild switch --flake ~/.config/nix deploy
``` ```
### Update ## Update
```sh ```sh
nix flake update --commit-lock-file ~/.config/nix nix flake update --commit-lock-file ~/.config/nix
``` ```