diff --git a/nixos/modules/config/sysfs.nix b/nixos/modules/config/sysfs.nix index 7be2070684b2..a8cb283c5d0c 100644 --- a/nixos/modules/config/sysfs.nix +++ b/nixos/modules/config/sysfs.nix @@ -191,27 +191,26 @@ in config = lib.mkIf (cfg != { }) { systemd = { - paths = - { - "nixos-sysfs@" = { - description = "/%I attribute watcher"; - pathConfig.PathExistsGlob = "/%I"; - unitConfig.DefaultDependencies = false; - }; - } - // listToAttrs ( - mapAttrsToListRecursive ( - p: v: - if v == null then - [ ] - else - nameValuePair "nixos-sysfs@${escapeSystemdPath (mkPath p)}" { - overrideStrategy = "asDropin"; - wantedBy = [ "sysinit.target" ]; - before = [ "sysinit.target" ]; - } - ) cfg - ); + paths = { + "nixos-sysfs@" = { + description = "/%I attribute watcher"; + pathConfig.PathExistsGlob = "/%I"; + unitConfig.DefaultDependencies = false; + }; + } + // listToAttrs ( + mapAttrsToListRecursive ( + p: v: + if v == null then + [ ] + else + nameValuePair "nixos-sysfs@${escapeSystemdPath (mkPath p)}" { + overrideStrategy = "asDropin"; + wantedBy = [ "sysinit.target" ]; + before = [ "sysinit.target" ]; + } + ) cfg + ); services."nixos-sysfs@" = { description = "/%I attribute setter";