nixos/config/sysfs: run treefmt

This commit is contained in:
Wolfgang Walther
2025-08-11 09:16:28 +02:00
parent 9585e9192a
commit f96d58f0c8

View File

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