mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-18 22:04:49 +00:00
readme
This commit is contained in:
parent
fee73ac6bf
commit
b2217633e7
1 changed files with 27 additions and 0 deletions
27
README.md
27
README.md
|
|
@ -1,5 +1,32 @@
|
||||||
# Nix Config
|
# Nix Config
|
||||||
|
|
||||||
|
## New Machine
|
||||||
|
|
||||||
|
### Darwin
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||||
|
git clone https://github.com/harivansh-afk/nix.git ~/Documents/GitHub/nix
|
||||||
|
cd ~/Documents/GitHub/nix
|
||||||
|
sudo nix --extra-experimental-features 'nix-command flakes' run github:nix-darwin/nix-darwin/master#darwin-rebuild -- switch --flake path:.#darwin
|
||||||
|
exec zsh -l
|
||||||
|
bw login
|
||||||
|
export BW_SESSION="$(bw unlock --raw)"
|
||||||
|
just secrets-sync
|
||||||
|
just secrets-restore-files
|
||||||
|
exec zsh -l
|
||||||
|
```
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||||
|
git clone https://github.com/harivansh-afk/nix.git ~/Documents/GitHub/nix
|
||||||
|
cd ~/Documents/GitHub/nix
|
||||||
|
nix run github:nix-community/home-manager -- switch --flake path:.#linux -b hm-bak
|
||||||
|
exec zsh -l
|
||||||
|
```
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
- `flake.nix`: top-level flake and host wiring
|
- `flake.nix`: top-level flake and host wiring
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue