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

Conflict with systemd.sysusers #238

Open
oluceps opened this issue Jan 23, 2024 · 1 comment · May be fixed by #255
Open

Conflict with systemd.sysusers #238

oluceps opened this issue Jan 23, 2024 · 1 comment · May be fixed by #255

Comments

@oluceps
Copy link
Contributor

oluceps commented Jan 23, 2024

NixOS/nixpkgs#270727

Reproduce

After enable:

  systemd.sysusers.enable = true;
  system.etc.overlay.enable = true;
  system.etc.overlay.mutable = false;

rebuild produces log:

warning: Git tree '/etc/nixos' is dirty
Finished at 23:17:50 after 2s
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
error:
       … while calling the 'head' builtin

         at /nix/store/8mrigi3asyk7w8cbnb6khjdimi20ndlp-source/lib/attrsets.nix:960:11:

          959|         || pred here (elemAt values 1) (head values) then
          960|           head values
             |           ^
          961|         else

       … while evaluating the attribute 'value'

         at /nix/store/8mrigi3asyk7w8cbnb6khjdimi20ndlp-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

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

       error: The option `system.activationScripts.users' is defined multiple times while it's expected to be unique.

       Definition values:
       - In `/nix/store/7b1y8jvq8n1vqj3pgadfkv6bammk58yy-source/hosts/hastur/default.nix':
           {
             deps = [
               "agenixInstall"
             ];
           }
       - In `/nix/store/8mrigi3asyk7w8cbnb6khjdimi20ndlp-source/nixos/modules/config/users-groups.nix': ""
       Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.
@oluceps oluceps changed the title Conflict with Nixpkgs' Perlless Activation Conflict with systemd.sysusers Mar 7, 2024
@oluceps
Copy link
Contributor Author

oluceps commented Mar 7, 2024

related Mic92/sops-nix@695275c

@oluceps oluceps linked a pull request Apr 6, 2024 that will close this issue
robbins added a commit to robbins/dots that referenced this issue Sep 11, 2024
tbaumann added a commit to tbaumann/nix-conf that referenced this issue Oct 4, 2024
tbaumann added a commit to tbaumann/nix-conf that referenced this issue Oct 4, 2024
tbaumann added a commit to tbaumann/nix-conf that referenced this issue Oct 4, 2024
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

Successfully merging a pull request may close this issue.

1 participant