Loading nixos/modules/services/monitoring/prometheus/exporters.nix +1 −4 Original line number Diff line number Diff line Loading @@ -10,11 +10,9 @@ let inherit (lib) concatStrings foldl foldl' genAttrs literalExpression maintainers mapAttrs mapAttrsToList mkDefault Loading @@ -22,9 +20,7 @@ let mkIf mkMerge mkOption optional types mkOptionDefault flip attrNames xor Loading Loading @@ -328,6 +324,7 @@ let description = "Prometheus ${name} exporter service user"; isSystemUser = true; inherit (conf) group; extraGroups = mkIf (name == "libvirt") [ "libvirtd" ]; } ); users.groups = mkMerge [ Loading nixos/modules/services/monitoring/prometheus/exporters/libvirt.nix +5 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,11 @@ in --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \ --libvirt.uri ${cfg.libvirtUri} ${lib.concatStringsSep " " cfg.extraFlags} ''; RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; }; }; } pkgs/by-name/pr/prometheus-libvirt-exporter/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -30,5 +30,6 @@ buildGoModule (finalAttrs: { homepage = "https://github.com/Tinkoff/libvirt-exporter"; license = lib.licenses.asl20; maintainers = [ ]; mainProgram = "libvirt-exporter"; }; }) Loading
nixos/modules/services/monitoring/prometheus/exporters.nix +1 −4 Original line number Diff line number Diff line Loading @@ -10,11 +10,9 @@ let inherit (lib) concatStrings foldl foldl' genAttrs literalExpression maintainers mapAttrs mapAttrsToList mkDefault Loading @@ -22,9 +20,7 @@ let mkIf mkMerge mkOption optional types mkOptionDefault flip attrNames xor Loading Loading @@ -328,6 +324,7 @@ let description = "Prometheus ${name} exporter service user"; isSystemUser = true; inherit (conf) group; extraGroups = mkIf (name == "libvirt") [ "libvirtd" ]; } ); users.groups = mkMerge [ Loading
nixos/modules/services/monitoring/prometheus/exporters/libvirt.nix +5 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,11 @@ in --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \ --libvirt.uri ${cfg.libvirtUri} ${lib.concatStringsSep " " cfg.extraFlags} ''; RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; }; }; }
pkgs/by-name/pr/prometheus-libvirt-exporter/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -30,5 +30,6 @@ buildGoModule (finalAttrs: { homepage = "https://github.com/Tinkoff/libvirt-exporter"; license = lib.licenses.asl20; maintainers = [ ]; mainProgram = "libvirt-exporter"; }; })