nixos-with-flakes/downgrade-or-upgrade-packages #136
Replies: 3 comments 4 replies
-
This might be obvious but it wasn't for me, so I'll leave it here in case anyone else encounters the same problem; {
description = "Main NixOS flake";
inputs = {
# NixOS official package source, using the nixos-23.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# fw-fanctrl.url = "github:mdvmeijer/fw-fanctrl-nix";
};
outputs = inputs@{
self,
nixpkgs,
nixpkgs-unstable,
nixos-hardware,
home-manager,
...
}: {
nixosConfigurations.<hostname> = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
# Hardware definition from https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
nixos-hardware.nixosModules.framework-12th-gen-intel
./default.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.<user> = import ./users/<user>/home.nix;
home-manager.extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
}
];
};
};
} |
Beta Was this translation helpful? Give feedback.
-
How would one go about setting it with the home.packages way but with 2 different branches. ie. smth akin to this: home.packages = with pkgs; [ home.packages = with pkgs-stable; [ I'm curious as to whether or not this is possible as it currently pops up as an error on my end and i understand why it doesnt work, just curious if there is a way to do it. |
Beta Was this translation helpful? Give feedback.
-
So if i do this: # Default to the nixos-unstable branch
and i run nix flake update..will it update my nixos version from 24.11 to the latest version.. I recent;y has an issue where it updated my nixos to the warbler version and it has breaking changes. I want to avoid that. How do i update my flake without updating my nixos version. |
Beta Was this translation helpful? Give feedback.
-
nixos-with-flakes/downgrade-or-upgrade-packages
An unofficial and opinionated book for beginners
https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages
Beta Was this translation helpful? Give feedback.
All reactions