Hi, so a while ago I set up an hybrid flake to have both stable and unstable pkgs with unstable as main, recently I had problems with the audio not working after an update so I decided to go back to stable, I modified the flake but when I rebuilt it gave me this error
error: path ‘/nix/store/whpmnfw6wj42iy2r38i53kfiqd84mfw7-source/lib/services/lib.nix’ does not exist
So I went to the github out of curiosity and it seems that lib/services/lib.nix exists only in unstable, anyway sudo nix-channel –list says I am using 25.11 and my home-manager does to.
I already tried sudo git add ., nix-store --gc, sudo nix flake update, I also tried adding the unstable branch again but as secondary but it didn’t work, also any unstable packages I had I removed them, other than that the configuration.nix remains untouched from before so I don’t think there is a problem there, here is the flake.nix:
{
description = "flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
in
{
nixosConfigurations = {
nixos = lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
users.fra = ./home.nix;
};
}
];
specialArgs = {
inherit pkgs-unstable;
};
};
};
};
}
honestly I have no idea of what could possibly be the problem, I didn’t find anything on google. Pls help ![]()