mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-10-15 19:37:19 +02:00
treewide: remove 'with lib;'
This commit is contained in:
parent
cf54323dc7
commit
78ae241387
53 changed files with 245 additions and 245 deletions
|
@ -8,24 +8,24 @@ let
|
|||
cfg = config.my.services.matrix-bot;
|
||||
in
|
||||
{
|
||||
options.my.services.matrix-bot = with lib; {
|
||||
enable = mkEnableOption "enable matrix forwarding bot";
|
||||
Username = mkOption {
|
||||
type = types.str;
|
||||
options.my.services.matrix-bot = {
|
||||
enable = lib.mkEnableOption "enable matrix forwarding bot";
|
||||
Username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Matrix bot name.";
|
||||
example = "@bot:matrix.org";
|
||||
default = "@stunkymonkey-bot:matrix.org";
|
||||
};
|
||||
PasswortFile = mkOption {
|
||||
type = types.path;
|
||||
PasswortFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = ''
|
||||
Password for the bot.
|
||||
format: MX_TOKEN=<token>
|
||||
'';
|
||||
example = "/run/secrets/password";
|
||||
};
|
||||
RoomID = mkOption {
|
||||
type = types.str;
|
||||
RoomID = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Matrix room id.";
|
||||
example = "!abcdefghijklmnopqr:matrix.org";
|
||||
default = "!ZWnKiKLuQNBkBGMPCl:matrix.org";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue