Hi, today when I went to update the inputs for my configurations flake I got this error.
[kat@desktop ~/.nixos] sudo nix flake update
error:
… while updating the lock file of flake 'path:/home/kat/.nixos?lastModified=1729476398&narHash=sha256-BbkA6hLp%2BfNYvuofmBPN%2BvMvoyKnv3XN2t1ZzAa7qpM%3D'
… while updating the flake input 'nixpkgs-unstable'
… while fetching the input 'github:nixos/nixpkgs/nixos-unstable'
error: tarball 'https://github.com/nixos/nixpkgs/archive/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0.tar.gz' contains an unexpected number of top-level files
I do not recall changing any part of my configuration since the last time I updated the inputs and rebuilt. Does anyone else have this issue?
Here is my flake.nix:
{
description = "Flakes are to Nix what automatic slicers are to bread.";
outputs =
inputs@{ ... }:
let
hosts = import ./hosts/hosts.nix;
createHost =
hostName: hostOptions:
inputs."nixpkgs-${hostOptions.channel}".lib.nixosSystem {
modules = [ hostOptions.module ];
specialArgs = {
inherit inputs hostOptions;
};
};
in
{
nixosConfigurations = builtins.mapAttrs (
hostName: hostOptions: createHost hostName hostOptions
) hosts;
};
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager-stable = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
home-manager-unstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixvim-stable = {
url = "github:nix-community/nixvim/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
nixvim-unstable = {
url = "github:nix-community/nixvim/main";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
stylix-stable = {
url = "github:danth/stylix/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
stylix-unstable = {
url = "github:danth/stylix/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
catppuccin.url = "github:catppuccin/nix";
};
}