world1tree / nixos-dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

手动安装

  1. 下载template到home目录下

nix-shell -p git

git clone https://github.com/world1tree/nixos-dotfiles.git .dotfiles

cd .dotfiles

  1. 使用disko进行分区并挂载(可能需要修改disk-config文件) sudo nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nix-community/disko -- --mode zap_create_mount ./modules/nixos/disk-config.nix

  2. 生成配置文件 sudo nixos-generate-config --root /mnt

sudo rm /mnt/etc/nixos/configruation.nix

sudo cp /mnt/etc/nixos/hardware-configuration.nix .

git add hardware-configuration.nix

  1. 安装系统 sudo nixos-install --flake .#x86_64-linux

镜像

使用上海交通大学的镜像源

nixos-rebuild switch --option substituters "https://mirror.sjtu.edu.cn/nix-channels/store"

使用**科学技术大学的镜像源

nixos-rebuild switch --option substituters "https://mirrors.ustc.edu.cn/nix-channels/store"

使用清华大学的镜像源

nixos-rebuild switch --option substituters "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"

About


Languages

Language:Nix 62.3%Language:Shell 37.7%