Appearance
启用 OpenSSH Server
启动 SSH,直接取消注释掉 /etc/nixos/configuartion.nix 中 ssh 那行,由于没有安装界面,所以直接使用 SSH 登录后设置会方便点。只有 nano 编辑器,且需要 sudo 权限。
编辑保存后使用 sudo nixos-rebuild switch ,更新配置。
无需重启,通过 ip addr 查看本机 IP,通过 SSH 连接。
启用国内镜像源
依照 nix-channels | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror 配置:
bash
nix-channel --add https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixpkgs-unstable nixpkgs
nix-channel --update