vimjoyer / flake-starter-config

The Unlicense
89 stars 10 forks source link

how do i set the version of home manager #7

Open lavenderdotpet opened 3 months ago

lavenderdotpet commented 3 months ago

im getting this issue where it says the version in ur flake is a head of 23.11 and i need to be on 23.11 since unstable breaks stuff for me

[nix-shell:/etc/nixos]$ sudo nixos-rebuild switch --flake /etc/nixos/#default
warning: updating lock file '/etc/nixos/flake.lock':
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29)
  → 'github:nixos/nixpkgs/219951b495fc2eac67b1456824cc1ec1fd2ee659' (2024-03-28)
building the system configuration...
trace: warning: lavender profile: You are using

  Home Manager version 24.05 and
  Nixpkgs version 23.11.

Using mismatched versions is likely to cause errors and unexpected
behavior. It is therefore highly recommended to use a release of Home
Manager that corresponds with your chosen release of Nixpkgs.

If you insist then you can disable this warning by adding

  home.enableNixpkgsReleaseCheck = false;

to your configuration.

updating GRUB 2 menu...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
lsblk: /dev/mapper/no*[0-9]: not a block device
lsblk: /dev/mapper/raid*[0-9]: not a block device
lsblk: /dev/mapper/disks*[0-9]: not a block device
activating the configuration...
setting up /etc...
reloading user units for lavender...
setting up tmpfiles
lavenderdotpet commented 3 months ago

@vimjoyer since u said u dont check issues often hoping this helps

tknawara commented 2 months ago

@MissLavender-LQ I think you can change the url for home-manager in the flake file to match the version of nixpkgs something like

url = "github:nix-community/home-manager/release-23.11";