Hi, I am trying to install home-manager as a nixos module following the instruction in sec-install-nixos-module. However, after finishing the configuration and nixos-rebuild switch
, I cannot find my home-manager command.
here is some relevant code of my /etc/nixos/configuration.nix
:
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos>
];
home-manager.backupFileExtension = "backup";
home-manager.useUserPackages = true;
home-manager.users.yl = {pkgs, ... }:{
home.packages = [pkgs.atool pkgs.htop];
home.stateVersion = "24.11";
};
And here is the result of nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-24.11
I am using zsh, and I have added this line to my .zshrc
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"