1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

chore: move module/constants.nix to lib/default.nix

This commit is contained in:
2020-10-30 11:05:26 +01:00
parent b8c79fd21c
commit 5dc561da83
37 changed files with 464 additions and 550 deletions

View File

@@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.niveum = {
wirelessInterface = mkOption { type = types.str; };
batteryName = mkOption { type = types.str; };
promptColours = let
colours16 = types.enum [
"black"
"red"
"green"
"yellow"
"blue"
"magenta"
"cyan"
"white"
];
in {
success = mkOption {
type = colours16;
default = "green";
};
failure = mkOption {
type = colours16;
default = "red";
};
};
};
}