首页 公告 项目 RSS

⬇️⬇️⬇️ 欢迎关注我的 telegram 频道和 twitter ⬇️⬇️⬇️


联系方式: Twitter Github Email Telegram

Update NixOS to 25.05

May 26, 2025 本文有 100 个字 需要花费 1 分钟阅读

Introduction

NixOS released version 25.05 Warbler on May 23rd. The previous version was 24.11, so today I decided to upgrade my system.

Steps

First, edit the configuration file:

vim /etc/nixos/configuration.nix

Change system.stateVersion to 25.05:

system.stateVersion = "25.05";

Then add the 25.05 release channel:

nix-channel --add https://channels.nixos.org/nixos-25.05 nixos

Finally, perform the upgrade:

nixos-rebuild switch --upgrade

Configure Automatic Updates

I prefer scheduled updates, so let’s configure NixOS for automatic upgrades.

Edit the configuration file:

vim /etc/nixos/configuration.nix

Add the following lines:

  system.autoUpgrade.enable = true;
  system.autoUpgrade.allowReboot = false;

Finally, apply the changes:

nixos-rebuild switch

Feel free to follow my blog at www.bboy.app

Have Fun