mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 05:21:06 +01:00
treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
parent
5df48c4255
commit
cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let inherit (lib) mkOption types;
|
||||
in {
|
||||
let
|
||||
inherit (lib) mkOption types;
|
||||
in
|
||||
{
|
||||
options.imapnotify = {
|
||||
enable = lib.mkEnableOption "imapnotify";
|
||||
|
||||
|
|
@ -15,8 +17,7 @@ in {
|
|||
type = with types; either str (attrsOf str);
|
||||
default = "";
|
||||
example = {
|
||||
mail =
|
||||
"\${pkgs.notmuch}/bin/notmuch new && \${pkgs.libnotify}/bin/notify-send 'New mail arrived'";
|
||||
mail = "\${pkgs.notmuch}/bin/notmuch new && \${pkgs.libnotify}/bin/notify-send 'New mail arrived'";
|
||||
};
|
||||
description = "Shell commands to run after onNotify event.";
|
||||
};
|
||||
|
|
@ -24,7 +25,10 @@ in {
|
|||
boxes = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "Inbox" "[Gmail]/MyLabel" ];
|
||||
example = [
|
||||
"Inbox"
|
||||
"[Gmail]/MyLabel"
|
||||
];
|
||||
description = "IMAP folders to watch.";
|
||||
};
|
||||
|
||||
|
|
@ -36,7 +40,11 @@ in {
|
|||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
type = let jsonFormat = pkgs.formats.json { }; in jsonFormat.type;
|
||||
type =
|
||||
let
|
||||
jsonFormat = pkgs.formats.json { };
|
||||
in
|
||||
jsonFormat.type;
|
||||
default = { };
|
||||
description = "Additional configuration to add for this account.";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue