snowfallorg / lib

Unified configuration for systems, packages, modules, shells, templates, and more with Nix Flakes.
https://snowfall.org
Other
415 stars 37 forks source link

Could not check my flake #73

Closed Svenum closed 6 months ago

Svenum commented 6 months ago

If I make a nix flake check I got this errors:

Details ```bash warning: Git tree '/home/sven/GitHub/nix' is dirty warning: input 'nixos-hardware' has an override for a non-existent input 'nixpkgs' warning: unknown flake output 'homeModules' warning: unknown flake output '_snowfall' warning: unknown flake output 'pkgs' error: … while checking flake output 'nixosConfigurations' at «none»:0: (source not available) … while checking the NixOS configuration 'nixosConfigurations.Yon' at /nix/store/94gag39fil45c81x34rragrb3radkhyh-source/lib/mkFlake.nix:132:7: 131| { 132| ${host.output}.${reverseDomainName} = host.builder ({ | ^ 133| inherit (host) system; (stack trace truncated; use '--show-trace' to show the full trace) error: Failed assertions: - Your system configures nixpkgs with an externally created instance. `nixpkgs.config` options should be passed when creating the instance instead. Current value: { __toString = ; _type = "option"; declarationPositions = [ { column = 5; file = "/nix/store/cc0ribc27c349w1v2anrby7z8kigy5pq-source/nixos/modules/misc/nixpkgs.nix"; line = 148; } ]; declarations = [ "/nix/store/cc0ribc27c349w1v2anrby7z8kigy5pq-source/nixos/modules/misc/nixpkgs.nix" ]; default = { }; definitions = [ { allowUnfree = true; } ]; definitionsWithLocations = [ { file = "/nix/store/pz89rhy4lhpprlkzsyr57jksbk29nqqh-43msng2cg0ylwfn60cbqalgmvxk6xlrp-source/systems/x86_64-linux/Yon/default.nix"; value = { allowUnfree = true; }; } ]; description = '' Global configuration for Nixpkgs. The complete list of [Nixpkgs configuration options](https://nixos.org/manual/nixpkgs/unstable/#sec-config-options-reference) is in the [Nixpkgs manual section on global configuration](https://nixos.org/manual/nixpkgs/unstable/#chap-packageconfig). Ignored when {option}`nixpkgs.pkgs` is set. ''; example = { _type = "literalExpression"; text = '' { allowBroken = true; allowUnfree = true; } ''; }; files = [ "/nix/store/pz89rhy4lhpprlkzsyr57jksbk29nqqh-43msng2cg0ylwfn60cbqalgmvxk6xlrp-source/systems/x86_64-linux/Yon/default.nix" ]; highestPrio = 100; isDefined = true; loc = [ "nixpkgs" "config" ]; options = [ ]; type = { _type = "option-type"; check = ; deprecationMessage = null; description = "nixpkgs config"; descriptionClass = null; emptyValue = { }; functor = { binOp = ; name = "nixpkgs-config"; payload = null; type = null; wrapped = null; }; getSubModules = null; getSubOptions = ; merge = ; name = "nixpkgs-config"; nestedTypes = { }; substSubModules = ; typeMerge = ; }; value = { allowUnfree = true; }; } ```

If I switch nixpkgs to the stable 23.11 branch it works fine.

My Config: https://github.com/Svenum/nix

Svenum commented 6 months ago

I found the issue. I simply removed:

nixpkgs.config.allowUnfree = true;

from my /systems/x86_64-linux/Yon/default.nix