From f96d58f0c8c9fead0b818fb4034c99baefd80c76 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 11 Aug 2025 09:16:28 +0200 Subject: [PATCH] nixos/config/sysfs: run treefmt --- nixos/modules/config/sysfs.nix | 41 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 21 deletions(-) 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";