summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-12-06 12:12:20 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-12-06 12:12:20 +0100
commit53157ecfd2003007807cfd5a80f53d204dab9923 (patch)
tree48aadfda38f22164934f1eda041becfd0a498ce1
parent789371a10a0fb691add194c3112e4d15902915c8 (diff)
add basic options
-rw-r--r--modules/why3.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/why3.nix b/modules/why3.nix
new file mode 100644
index 0000000..2e8a861
--- /dev/null
+++ b/modules/why3.nix
@@ -0,0 +1,18 @@
+{ lib, ... }:
+
+let
+ cfg = config.why3;
+ why3Flags = concatStringsSep " " ([ ("-C '${cfg.configFile}'") ]);
+in {
+ options.why3 = {
+ enable = lib.mkEnableOption "why3";
+ configFile = lib.mkOption {
+ type = lib.types.path;
+ default = ~/.why3.conf;
+ defaultText = literalExample "~/.why3.conf";
+ description = ''
+ The path to the why3 config file.
+ '';
+ };
+ };
+}