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

Odd formatting of a somewhat long attrset item #203

Open
winterqt opened this issue May 15, 2024 · 0 comments
Open

Odd formatting of a somewhat long attrset item #203

winterqt opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@winterqt
Copy link
Member

Description

A particular attrset item I have in a NixOS configuration is formatted quite oddly, while the surrounding similar lines are not.

Small example input

{
  systemd.services."systemd-homed".serviceConfig.WatchdogSec = 0;
  systemd.services."systemd-networkd".serviceConfig.WatchdogSec = lib.mkIf config.systemd.network.enable 0;
}

Expected output

{
  systemd.services."systemd-homed".serviceConfig.WatchdogSec = 0;
  systemd.services."systemd-networkd".serviceConfig.WatchdogSec = lib.mkIf config.systemd.network.enable 0;
}

Actual output

{
  systemd.services."systemd-homed".serviceConfig.WatchdogSec = 0;
  systemd.services."systemd-networkd".serviceConfig.WatchdogSec =
    lib.mkIf config.systemd.network.enable
      0;
}
@dasJ dasJ added the bug Something isn't working label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants