diff --git a/flake.nix b/flake.nix index 6d87417..f09016b 100644 --- a/flake.nix +++ b/flake.nix @@ -2,8 +2,15 @@ description = "A simple NixOS flake"; inputs = { - # NixOS official package source, using the nixos-25.11 branch here nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; + + home-manager = { + url = "github:nix-community/home-manager/release-25.11"; + # The `follows` keyword in inputs is used for inheritance. + # Here, `inputs.nixpkgs` of home-manager is kept consistent with + # the `inputs.nixpkgs` of the current flake, + # to avoid problems caused by different versions of nixpkgs. + inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, ... }@inputs: {