1
0

modules/monitoring: add nixos-exporter

This commit is contained in:
2023-01-02 19:10:33 +01:00
parent fb4e0ecd33
commit 64122a7149
3 changed files with 57 additions and 1 deletions

View File

@@ -1,8 +1,12 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-exporter = {
url = "git+https://git.clerie.de/clerie/nixos-exporter.git";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }: let
outputs = { self, nixpkgs, nixos-exporter, ... }: let
pkgs = import nixpkgs {
overlays = [
(import ./pkgs/overlay.nix)
@@ -16,6 +20,14 @@
system = "x86_64-linux";
modules = [
./configuration/common
({ ... }: {
nixpkgs.overlays = [
(_: _: {
inherit (nixos-exporter.packages.${system})
nixos-exporter;
})
];
})
(./hosts + "/${name}/configuration.nix")
];
};