Skip to content

nix run .#build fails with nix.gc.user' and services.nix-daemon.enable' in hosts/darwin no longer has any effect error #144

Open
@aloshy-ai

Description

@aloshy-ai

When running nix run .#build on macOS Sequoia, the following error has been occurred:

error:
       … while evaluating the attribute 'value'
         at /nix/store/zbvf6xwri9kvf42xl3vai3mx8jry6ax8-source/lib/modules.nix:853:9:
          852|     in warnDeprecation opt //
          853|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          854|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/zbvf6xwri9kvf42xl3vai3mx8jry6ax8-source/lib/modules.nix:888:5:
          887|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          888|     mergedValue =
             |     ^
          889|       if isDefined then

       … while evaluating definitions from `/nix/store/qp24528rxcnjskxsqs40aybaiqp7qq51-source/modules/system':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error:
       Failed assertions:
       - The option definition `nix.gc.user' in `/nix/store/zkkcgy73xlq8p4vk46jrxs0rm02aq8zx-source/hosts/darwin' no longer has any effect; please remove it.
       The garbage collection service now always runs as `root`.

       - The option definition `services.nix-daemon.enable' in `/nix/store/zkkcgy73xlq8p4vk46jrxs0rm02aq8zx-source/hosts/darwin' no longer has any effect; please remove it.
       nix-darwin now manages nix-daemon unconditionally when
       `nix.enable` is on.

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