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

bug: accounts.email.accounts.aerc.enable causes " error: cannot coerce null to a string" #5330

Open
2 tasks done
jennydaman opened this issue Apr 23, 2024 · 0 comments
Open
2 tasks done
Assignees

Comments

@jennydaman
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Consider a minimal email config with aerc enabled:

{ lib, pkgs, ... }:

{
  accounts.email.accounts."example" = {
    primary = true;
    address = "hello@example.org";
    realName = "Example email";

    # imap.host = "localhost";
    # imap.port = 1143;
    # smtp.host = "localhost";
    # smtp.port = 1025;

    aerc.enable = true;
  };
}

The above example works, however uncommenting either imap or smtp settings will result in the error

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'

         at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

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

       error: cannot coerce null to a string

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.27, NixOS, 24.05 (Uakari), 24.05pre612742.66adc1e47f87`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@jennydaman jennydaman added bug triage Issues or feature request that have not been triaged yet labels Apr 23, 2024
@teto teto added mail and removed triage Issues or feature request that have not been triaged yet labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants