nixos/config/sysfs: run treefmt
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user