modules/monitoring: add nixos-exporter
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -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")
|
||||
];
|
||||
};
|
||||
|
Reference in New Issue
Block a user