summaryrefslogtreecommitdiff
path: root/nix-modules/example.nix
blob: cbffb4aec1002837e417cdb5bd0c872e82c0002e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{pkgs ? import <nixpkgs> {}, ...}:

import ./docker-nixos-modules.nix {
  name = "grafana";
  nixpkgsPath = <nixpkgs>;

  ociconfig = {pkgs, config, ...}: {

    imports = [
      <nixpkgs/nixos/modules/services/monitoring/grafana.nix>
    ];

    services.grafana = {
      enable = true;
      dataDir = "/data";
      addr = "0.0.0.0";
    };

  };
}