Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting missing attribute error when rebuilding #375

Open
BRBWaffles opened this issue Sep 27, 2024 · 1 comment
Open

Getting missing attribute error when rebuilding #375

BRBWaffles opened this issue Sep 27, 2024 · 1 comment

Comments

@BRBWaffles
Copy link

BRBWaffles commented Sep 27, 2024

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:

  • OS version: NixOS unstable 24.11.20240911.4f807e8
  • Peertube version: 6.0.4
  • Peertube installation type: NixOS service module.

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
Copy link
Member

wegank commented Nov 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants