2025_10_11 16:58
标签: 无
sudo nano /etc/nixos/configuration.nix environment.systemPackages = with pkgs; [ clash-verge-rev ]; sudo nixos-rebuild switch
https://xb1821.com/rss/cv1/Bv8MAtA/IUEosc
https://gitlab.com/theblackdon/black-don-os
nix.settings.substituters = [ "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" ];
monitor=eDP-1,2560x1600@120.00000,0x0,1.6
/home/yanan/black-don-os/modules/core/system.nix
i18n.defaultLocale = "zh_CN.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "zh_CN.UTF-8"; LC_IDENTIFICATION = "zh_CN.UTF-8"; LC_MEASUREMENT = "zh_CN.UTF-8"; LC_MONETARY = "zh_CN.UTF-8"; LC_NAME = "zh_CN.UTF-8"; LC_NUMERIC = "zh_CN.UTF-8"; LC_PAPER = "zh_CN.UTF-8"; LC_TELEPHONE = "zh_CN.UTF-8"; LC_TIME = "zh_CN.UTF-8"; };
nix-shell -p git pciutils
git clone https://gitlab.com/theblackdon/black-don-os cd black-don-os ./install.sh
# 更新添加--国内 包订阅 nix-channel --add https://mirrors.ustc.edu.cn/nix-channels/nixpkgs-unstable nixpkgs
# 重启 Nix 守护进程 sudo systemctl restart nix-daemon.service
# 刷新源 nix-channel --update
nix.settings = { substituters = [ "https://mirror.sjtu.edu.cn/nix-channels/store" # 上海交大镜像 "https://cache.nixos.org" # 官方缓存 ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; };
https://cloud.tencent.com/developer/article/2577902
mount /dev/**** /mnt nixos-install --option substituters "https://mirror.sjtu.edu.cn/nix-channels/store"
sudo su
mount /dev/nvme0n1p7 /mnt
nixos-install --option substituters "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
sudo su mount --mkdir /dev/nvme0n1p6 /mnt/boot mount /dev/nvme0n1p7 /mnt nixos-install --option substituters "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
export ALL_PROXY=http://127.0.0.1:7890
# 查看系统配置代次 sudo nix-env -p /nix/var/nix/profiles/system --list-generations
# 查看用户环境代次(如果需要) nix-env --list-generations
# 保留最近 5 个系统代次,删除更早的 sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +5
# 删除编号为 10、11 的系统代次 sudo nix-env -p /nix/var/nix/profiles/system --delete-generations 10 11 # 删除所有旧代次,只保留当前 sudo nix-env -p /nix/var/nix/profiles/system --delete-generations old
名字
内容
提 交
sudo nano /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
clash-verge-rev
];
sudo nixos-rebuild switch
https://xb1821.com/rss/cv1/Bv8MAtA/IUEosc
https://gitlab.com/theblackdon/black-don-os
nix.settings.substituters = [ "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" ];
monitor=eDP-1,2560x1600@120.00000,0x0,1.6
/home/yanan/black-don-os/modules/core/system.nix
i18n.defaultLocale = "zh_CN.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "zh_CN.UTF-8";
LC_IDENTIFICATION = "zh_CN.UTF-8";
LC_MEASUREMENT = "zh_CN.UTF-8";
LC_MONETARY = "zh_CN.UTF-8";
LC_NAME = "zh_CN.UTF-8";
LC_NUMERIC = "zh_CN.UTF-8";
LC_PAPER = "zh_CN.UTF-8";
LC_TELEPHONE = "zh_CN.UTF-8";
LC_TIME = "zh_CN.UTF-8";
};
nix-shell -p git pciutils
git clone https://gitlab.com/theblackdon/black-don-os
cd black-don-os
./install.sh
# 更新添加--国内 包订阅
nix-channel --add https://mirrors.ustc.edu.cn/nix-channels/nixpkgs-unstable nixpkgs
# 重启 Nix 守护进程
sudo systemctl restart nix-daemon.service
# 刷新源
nix-channel --update
nix.settings = {
substituters = [
"https://mirror.sjtu.edu.cn/nix-channels/store" # 上海交大镜像
"https://cache.nixos.org" # 官方缓存
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
https://cloud.tencent.com/developer/article/2577902
mount /dev/**** /mnt
nixos-install --option substituters "https://mirror.sjtu.edu.cn/nix-channels/store"
sudo su
mount /dev/nvme0n1p7 /mnt
nixos-install --option substituters "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
sudo su
mount --mkdir /dev/nvme0n1p6 /mnt/boot
mount /dev/nvme0n1p7 /mnt
nixos-install --option substituters "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
export ALL_PROXY=http://127.0.0.1:7890
# 查看系统配置代次
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
# 查看用户环境代次(如果需要)
nix-env --list-generations
# 保留最近 5 个系统代次,删除更早的
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +5
# 删除编号为 10、11 的系统代次
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations 10 11
# 删除所有旧代次,只保留当前
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations old