treewide: fix deadnix errors

This commit is contained in:
Felix Buehler 2023-11-07 22:00:00 +01:00
parent a36dccb271
commit 46881de8eb
59 changed files with 70 additions and 93 deletions

View file

@ -2,7 +2,6 @@
{ config, lib, pkgs, inputs, ... }:
let
cfg = config.my.services.node-exporter;
domain = config.networking.domain;
in
{
options.my.services.node-exporter = with lib; {
@ -57,7 +56,7 @@ in
let
inputsWithDate = lib.filterAttrs (_: input: input ? lastModified) inputs;
flakeAttrs = input: (lib.mapAttrsToList (n: v: ''${n}="${v}"'')
(lib.filterAttrs (n: v: (builtins.typeOf v) == "string") input));
(lib.filterAttrs (_n: v: (builtins.typeOf v) == "string") input));
lastModified = name: input: ''
flake_input_last_modified{input="${name}",${lib.concatStringsSep "," (flakeAttrs input)}} ${toString input.lastModified}'';
in