Skip to content

yikyo/nix-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

## Linux相关命令

### 本地部署
```bash
nixos-rebuild switch --flake .#home
```

### 远程部署
```bash
nixos-rebuild switch --flake .#home --target-host yikyo@10.0.0.200 --build-host yikyo@10.0.0.200 --sudo
```


## MACOS相关命令

### 安装nix
```bash
curl -sSfL https://artifacts.nixos.org/nix-installer | sh -s -- install --enable-flakes
```

### 安装brew
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

### 安装nix-darwin
```bash
sudo nix run nix-darwin/nix-darwin-25.11#darwin-rebuild -- switch --flake .#workstation
```

### 部署
```bash
sudo darwin-rebuild switch --flake .#workstation
```

## 通用命令

### 更新flake
```bash
nix run .#write-flake
```

### 格式化
```bash
nix fmt
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages