bbigras/nix-config · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
nix-config

进行中
功能特性
- flakes
- 使用 deploy-rs 进行部署
- 使用 zen Linux 内核
- 使用 nixos-hardware
- 使用 srvos
- 笔记本电脑上的全盘加密
- 为 home-manager 提供 emacs-init module,详见
users/bbigras/dev/emacs.nix - overlays
- emacs-overlay
- nur
- 使用 systemd-resolved 实现分离式 DNS(相关设置可能在我的私有文件中)
- tailscale
该项目在很大程度上基于 https://github.com/lovesegfault/nix-config,许多文件直接从该仓库复制而来。
请注意,许多文件的许可证应包含 lovesegfault 的版权信息,目前还不确定该如何处理此事。
构建一台主机
nix build .#hosts.desktop --impure
部署一台主机
deploy -s .#pixel6 -- --impure
nix-on-droid(初次使用)
在手机上:
nix-shell -p openssh -p which
# get user and group id and put it in hosts/pixel6/default.nix
id
ssh-keygen -q -N "" -t ed25519 -f ~/ssh_host_ed25519_key
cat <<EOF > tmp-sshd
HostKey ~/ssh_host_ed25519_key
Port 8022
EOF
mkdir -p ~/.ssh
cat <<EOF > ~/.ssh/authorized_keys
**my key**
EOF
# start sshd server to be able to deploy from desktop with deploy-rs
`which sshd` -dD -f ~/tmp-sshd