Hello!
I have an issue with the amount of space the /nix/store is using.
I wanted to update today and I found out my root partition ran out of space, so I did some garbage collecting and even nix store optimise to reduce the space usage but I’ve reached a limit and I don’t know how to reduce it further.
When I rebuild, it says that my configuration is around 19GiB, but my /nix/store is currently 54GiB even after having done sudo nix-collect-garbage -d and nix store optimise
It is of note that I recently changed from the unstable channel to the stable one (25.11) and there have been some weird things that arose after that.
For example my home-manager: when I do a home-manager switch it raises the warning that there’s a version miss-match (26.05) even though I have in my flake that home-manager should follow nixpkgs (25.11) (flake bellow).
Another weird thing is that after having collected old generations, I saw once a systemd boot option for a 26.05 version. Could it be that I have a parasitic generation that is linked but have not been able to unlink?
Thanks in advance
My flake:
{
description = "Nixos config flake";
inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
nixpkgs-old-gtk = {
url = "github.com/NixOS/nixpkgs/6d674616a4c9fb815c2599c6615e3c34b6027cee";
flake = false;
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nvf = {
url = "github:NotAShelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
my-nvf-config = {
url = "github:MijaToka/nvf-config";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
home-manager,
stylix,
nvf,
zen-browser,
...
}@inputs:
let
system = "x86_64-linux";
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
inherit system;
modules = [
./nixos/configuration.nix
(
{ pkgs, ... }:
{
environment.systemPackages = [ inputs.my-nvf-config.packages.${system}.default ];
}
)
];
};
};
homeConfigurations = {
mija = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
./Mija/home.nix
stylix.homeManagerModules.stylix
];
};
};
};
}