diff options
author | stuebinm | 2021-05-07 23:50:42 +0200 |
---|---|---|
committer | stuebinm | 2021-05-07 23:50:42 +0200 |
commit | 8bb7cbacc2a5a714f940d1cd5aee4d843f40b707 (patch) | |
tree | adfa8dbbe2a714f2c80fdf3da45df066aacbe2b5 /nix-modules/example.nix | |
parent | d8a1a9a1c04b147da627a318cc5344c74bd2af36 (diff) |
experimenting with nixos modules in oci containers
See the Readme.org file for what this is.
Diffstat (limited to 'nix-modules/example.nix')
-rw-r--r-- | nix-modules/example.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nix-modules/example.nix b/nix-modules/example.nix new file mode 100644 index 0000000..2596df6 --- /dev/null +++ b/nix-modules/example.nix @@ -0,0 +1,22 @@ +{pkgs ? import <nixpkgs> {}, ...}: + +import ./docker-nixos-modules.nix { + name = "grafana"; + nixpkgsPath = <nixpkgs>; + + ociconfig = {pkgs, config, ...}: { + + imports = [ + <nixpkgs/nixos/modules/services/monitoring/grafana.nix> + <nixpkgs/nixos/modules/services/web-servers/nginx/default.nix> + <nixpkgs/nixos/modules/security/acme.nix> + ]; + + services.grafana = { + enable = true; + dataDir = "/data"; + addr = "0.0.0.0"; + }; + + }; +} |