Skip to content

Commit b85202c

Browse files
authored
feat(wrapperModules.ov): init (#177)
1 parent 1be338a commit b85202c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

maintainers/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66
github = "patwid";
77
githubId = 1428207;
88
};
9+
rencire = {
10+
name = "rencire";
11+
github = "rencire";
12+
githubId = 546296;
13+
};
914
}

wrapperModules/o/ov/module.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
config,
3+
lib,
4+
wlib,
5+
pkgs,
6+
...
7+
}:
8+
let
9+
yamlFmt = pkgs.formats.yaml { };
10+
in
11+
{
12+
imports = [ wlib.modules.default ];
13+
options = {
14+
settings = lib.mkOption {
15+
type = yamlFmt.type;
16+
default = { };
17+
description = ''
18+
Configuration of ov.
19+
See <https://github.com/noborus/ov/blob/master/ov.yaml>
20+
'';
21+
};
22+
};
23+
config.flags = {
24+
"--config" = yamlFmt.generate "ov.yaml" config.settings;
25+
};
26+
config.package = lib.mkDefault pkgs.ov;
27+
config.meta.maintainers = [ wlib.maintainers.rencire ];
28+
}

0 commit comments

Comments
 (0)