Skip to content

nix: The option `services.elephant.enable' is already declared #687

@egara

Description

@egara

Describe the bug

Hi. First of all, thank you very much for your amazing project. It is awesome and very very useful. Keep up this good work!! :)

I'm using NixOS and I have a flake to define my entire configuration. Two days ago, when I tried to update my flake and rebuild my system, this error was thrown:

error: The option `services.elephant.enable' in `/nix/store/gnf2ayqhb31qvgh1s9mg3aqaj9378cg7-source/nixos/modules/services/misc/elephant.nix' is already declared in `/nix/store/gnf2ayqhb31qvgh1s9mg3aqaj9378cg7-source/flake.nix'

Configs

I have included the walker nix flake configuration described in the official documentation within my own flake. I am using nixpkgs-unstable as my main channel for all the packages and configurations.

I think the problem is related to nixpgs-unstable. Walker has been updated recently to 2.14.1 version and elephant has been included too. And here is the conflict. If I use the official flake, services.elephant.enable is set here but there is another definition of this same services within nixpgks.

I have resolved this problem using the option disabledModules = [ "services/misc/elephant.nix" ]; so I suggest to include this line within the Nix Install documentation in order to avoid problems.

Again, thank you very much for all the hard work and if you need more information please let me know.

Best,

Eloy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions