mirror of
https://codeberg.org/icewind/mitemp-prometheus.git
synced 2026-06-03 09:04:13 +02:00
add module
This commit is contained in:
parent
7c3d4a7867
commit
9d40881429
5 changed files with 154 additions and 2 deletions
19
flake.nix
19
flake.nix
|
|
@ -10,5 +10,22 @@
|
|||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
outputs = { mill-scale, ... }: mill-scale ./. { };
|
||||
outputs = { mill-scale, ... }: mill-scale ./. {
|
||||
packages.mitemp-prometheus = import ./package.nix;
|
||||
|
||||
nixosModules = { outputs, ... }: {
|
||||
default =
|
||||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, ...
|
||||
}: {
|
||||
imports = [ ./module.nix ];
|
||||
config = lib.mkIf config.services.mitemp.enable {
|
||||
nixpkgs.overlays = [ outputs.overlays.default ];
|
||||
services.mitemp.package = lib.mkDefault pkgs.mitemp-prometheus;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue