nix-community / trustix

Trustix: Distributed trust and reproducibility tracking for binary caches [maintainer=@adisbladis]
https://nix-community.github.io/trustix/
292 stars 20 forks source link

error: A definition for option `services.trustix.deciders.nix' is not of type `submodule'. #35

Open davidak opened 2 years ago

davidak commented 2 years ago

Describe the bug

[root@gaming:~]# nixos-rebuild switch
building Nix...
building the system configuration...
error: A definition for option `services.trustix.deciders.nix' is not of type `submodule'. Definition values:
       - In `/etc/nixos/configuration.nix':
           [
             {
               engine = "percentage";
               percentage = {
                 minimum = 66;
           ...
(use '--show-trace' to show detailed location information)

To Reproduce

https://tweag.github.io/trustix/binarycache.html#trustix---binary-cache-setup

Expected behavior

no errors when following documentation

Environment OS name + version: NixOS 22.05pre375061.c777cdf5c56 Version of the code: https://github.com/tweag/trustix/commit/7ed5270f76588a6b635c232681b3af6d9f09c1fa

Additional context Add any other context about the problem here.

davidak commented 2 years ago

This works:

    deciders.nix = {
      engine = "percentage";
      percentage.minimum = 66;
    };

https://github.com/tweag/trustix/blob/fe726118f9f6ecd9739554ac16f32b499ad7a981/packages/trustix/nixos/default.nix#L189-L193