I used Vimjoyer’s Ultimate NixOS Guide with flakes and Home-manager to guide my configuration.
This seemed to be working when I had my packages in configuration.nix but when I moved them to home.nix I can’t seem to update yt-dlp to the latest version.
I’m running this to update: sudo nixos-rebuild switch --flake /home/sergio/nixos-config#oak --upgrade
I see yt-dlp is at 2024.8.1 but my version is 2024.04.09
This is certainly me using a setup that I don’t fully understand, and I barely understood how to update things. I’m very open to any other links or reading material showing what you think may be a better way to configure things.
Since you’re using flakes, packages are pulled from the inputs.nixpkgs that you set at the top of your flake.nix. Flakes use the current lock file flake.lock to know what version of nixpkgs to pull. If you want to update all your inputs (including nixpkgs), you can do nix flake update, which should also update nixpkgs in your inputs. Then - you can do a nixos-rebuild switch.
I thought to remove the /release-24.05 part from the home-manager.url, but that seems to get me into other trouble when running sudo nixos-rebuild switch --flake /home/sergio/nixos-config#oak --upgrade…
trace: warning: sergio profile: You are using
Home Manager version 24.11 and
Nixpkgs version 24.05.
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.
Wonder if I should try to remove the /24.05 from inputs.nixpkgs.url as well. Though that may not bode well.