Closed bashfulrobot closed 5 months ago
I think you have put the overlays in the wrong place, they should be set where you set the pkgs
variable and set allowUnfree
:
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = [
jeezyvim.overlays.default
# ... other overlays here
];
};
OK, I think this may be a garbage collection issue. It does not work on my laptop, but it does on my desktop. I think it is a "me" problem.
I think you have put the overlays in the wrong place, they should be set where you set the
pkgs
variable and setallowUnfree
:pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; overlays = [ jeezyvim.overlays.default # ... other overlays here ]; };
I totally missed this message. I am still fighting this issue, but it has to be a "me" problem.
It is odd, as my overlays set under modules work for all other overlays. And is working where it is on one system but not the other.
I just went looking at a bunch of other flake.nix files using github code search, and I see many bringing it in within the modules
section.
evo = nixpkgs.lib.nixosSystem {
# format different due to kolide-launcher
# nixpkgs.config.allowUnfree = true; only applies to non-flakes.
specialArgs = {
inherit inputs secrets;
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
system = "x86_64-linux";
modules = [
./systems/evo
nur.nixosModules.nur
# nixos-hardware.nixosModules.lenovo-thinkpad-x13-yoga
home-manager.nixosModules.home-manager
nix-flatpak.nixosModules.nix-flatpak
kolide-launcher.nixosModules.kolide-launcher
avalanche.nixosModules."avalanche/desktop"
{
home-manager.extraSpecialArgs = { inherit secrets; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# Overlays - specified in "workstationOverlays"
nixpkgs.overlays = workstationOverlays;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
}
];
};
I assume your overlays are needed at the home manger level. Maybe I misunderstood?
Solved it.
# evo = new work laptop hostname
evo = nixpkgs.lib.nixosSystem {
# format different due to kolide-launcher
# nixpkgs.config.allowUnfree = true; only applies to non-flakes.
specialArgs = {
inherit inputs secrets;
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
it was the:
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
I removed that, and it started working. It was in there from when I was trying to configure Kolide. I had missed that the definitions were slightly different. I thought they were identical.
Hi there,
(Are You sick of me yet? :smile: )
After making the changes as discussed in issue 3, updating my flake.lock, and running a rebuild, I am now running into:
I am sure I had changed things correctly, but for reference:
and nothing changed in my flake:
I also went to a stripped down config with:
I still got the same error.
Thank you.