nixfmt
nixfmt copied to clipboard
Odd formatting of a somewhat long attrset item
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;
}