How to upgrade packages ? #17
Answered
by
richen604
AdrienLemaire
asked this question in
Q&A
|
I've noticed that I need to upgrade nushell from 0.99.1 to 0.101, and I'm not figuring out the correct way to do so. Since nushell is unpinned in my systemPackages, I tried the following: $ sudo nix-channel --update
unpacking 1 channels...
$ sudo nixos-rebuild switch --upgrade --flake .
[sudo] password for dori:
warning: Git tree '/home/dori/Projects/Perso/hydenix' is dirty
building the system configuration...
warning: Git tree '/home/dori/Projects/Perso/hydenix' is dirty
activating the configuration...
setting up /etc...
reloading user units for dori...
restarting sysinit-reactivation.target
restarting the following units: home-manager-dori.service
the following new units were started: systemd-hostnamed.service
$ nu --version
0.99.1I can confirm that upstream nushell is available at 0.101.0 |
Answered by
richen604
Jan 7, 2025
Replies: 3 comments 7 replies
|
in your template flake inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
};
outputs =
{
hydenix,
...
}@inputs:
let
system = "x86_64-linux";
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
hydenixConfig = hydenix.lib.mkConfig {
userConfig = import ./config.nix;
# inputs without nixpkgs, as an attrset
extraInputs = {
# Make pkgs-unstable available as an input
pkgs-unstable = pkgs-unstable;
} // removeAttrs inputs [ "nixpkgs" ];
};in whatever your environment.systemPackages = [
pkgs-unstable.nu-shell
]; |
3 replies
|
Allowed for did not however allow this to use system level, youll still show as 24.11. hydenix will update system wide as needed (soon) |
4 replies
Answer selected by
richen604
|
Seems like the userPkgs setup as described in the doc is not working anymore I could install nixpkgs unstable packages with this change: pkgs = import inputs.hydenix.inputs.hydenix-nixpkgs {
inherit (inputs.hydenix.lib) system;
config.allowUnfree = true;
- overlays = [ inputs.hydenix.lib.overlays ];
-
- # Include your own package set to be used eg. pkgs.userPkgs.bash
- userPkgs = inputs.nixpkgs { config.allowUnfree = true; };
+ overlays = [
+ inputs.hydenix.lib.overlays
+ # Overlay to add userPkgs from unstable nixpkgs
+ (final: prev: {
+ userPkgs = import inputs.nixpkgs {
+ inherit (inputs.hydenix.lib) system;
+ config.allowUnfree = true;
+ };
+ })
+ ];
};
in { |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Allowed for
extraPkgsproperty in mkConfig, use dev branch for thisfollow the new option in the template flake
did not however allow this to use system level, youll still show as 24.11. hydenix will update system wide as needed (soon)
conflicting packages will need overlays