ngi-nix / ngipkgs

Nix packages and services for projects supported through the NGI program
https://ngi-nix.github.io/ngipkgs
MIT License
36 stars 19 forks source link

Getting missing attribute error when rebuilding #375

Open BRBWaffles opened 2 months ago

BRBWaffles commented 2 months ago

Bug Description: Installation in accordance with the docs does not compile correctly. Nix tells me that the attribute "services.peertube.plugins" is missing. This happened spontaneously. No relevant code was edited in my config.

To Reproduce:

  1. Declare the ngipkgs flake input and declare the services.peertube.plugins attribute under the server nixosConfigurations.
    {
    ...
    inputs.ngipkgs.url = "github:ngi-nix/ngipkgs";
    ...
    };
    ...
      flake = {config, ...}: {
        nixosConfigurations = {
          server = inputs.self.lib.mkLinuxSystem [
            ...
            inputs.ngipkgs.nixosModules.default
            inputs.ngipkgs.nixosModules."services.peertube.plugins"
          ];
        };
      };
    };
    }

Expected Behaviour: The flake input provides the correct attribute in the output.

Server:

Error:

     … while evaluating the attribute 'ngipkgs.nixosModules."services.peertube.plugins"'
         at /nix/store/7lfc8w9gyxrb3gkyy7j02vh2iymygygl-source/flake.nix:144:15:
          143|
          144|       inherit nixosModules;
             |               ^
          145|

       error: attribute '"services.peertube.plugins"' missing
       at /nix/store/246bdf7v0f9wk46dbawr9x44lfigs4k4-source/flake.nix:93:13:
           92|             inputs.ngipkgs.nixosModules.default
           93|             inputs.ngipkgs.nixosModules."services.peertube.plugins"
             |             ^
           94|             inputs.lix-module.nixosModules.default
wegank commented 4 weeks ago

Does inputs.ngipkgs.nixosModules."services.peertube" work?