diff --git a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md index 4175232..7bed2be 100644 --- a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -74,8 +74,8 @@ Note that the copied template cannot be used directly. You need to modify it to # The most widely used is `github:owner/name/reference`, # which represents the GitHub repository URL + branch/commit-id/tag. - # Official NixOS package source, using nixos-unstable branch here - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + # Official NixOS package source, using nixos-23.11 branch here + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; # home-manager, used for managing user configuration home-manager = { url = "github:nix-community/home-manager/release-23.11"; diff --git a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md index 8a91a07..9416728 100644 --- a/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/zh/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -70,8 +70,8 @@ cat flake.nix # github:owner/name/reference # 即 github 仓库地址 + branch/commit-id/tag - # NixOS 官方软件源,这里使用 nixos-unstable 分支 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + # NixOS 官方软件源,这里使用 nixos-23.11 分支 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; # home-manager,用于管理用户配置 home-manager = { url = "github:nix-community/home-manager/release-23.11";