安装nixos后要做的事情
更新channel源
1 | sudo nix-channel --add https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixos-24.11 nixos |
注意修改
nixos-24.11到匹配的版本
启用flatpak
- 在
/etc/nixos/configuration.nix中添加如下代码,启用flatpak
1 | # flatpak support |
- 启用蓝牙
1 | hardware.bluetooth.enable = true; # enables support for Bluetooth |
- 启用系统级工具
1 | environment.systemPackages = with pkgs; [ |
- 安装字体及输入法
1 | i18n.inputMethod = { |
- 配置网络
1 | # Enable networking |
-
更新系统执行
sudo nixos-rebuild switch更新系统 -
修改flatpak源,并安装常用软件
1 | sudo flatpak remote-modify flathub --url=https://mirrors.ustc.edu.cn/flathub |