coalescing code for imports

This commit is contained in:
Noah Masur
2025-03-10 03:37:48 +00:00
parent 90fd9f54a7
commit 1eae89b8ab
10 changed files with 104 additions and 21 deletions

View File

@ -27,10 +27,12 @@ in
name = lib.mkOption {
type = lib.types.str;
description = "Name to use for personal git commits";
default = config.nmasur.presets.programs.git.name;
};
email = lib.mkOption {
type = lib.types.str;
description = "Email to use for personal git commits";
default = config.nmasur.presets.programs.git.email;
};
};
};

View File

@ -6,7 +6,7 @@
}:
let
inherit (config.nmasur.settings) fullName hostnames;
inherit (config.nmasur.settings) username fullName hostnames;
cfg = config.nmasur.presets.services.mbsync;
in
@ -17,10 +17,12 @@ in
user = lib.mkOption {
type = lib.types.str;
description = "User name for the email address.";
default = username;
};
server = lib.mkOption {
type = lib.types.str;
description = "Server name for the email address.";
default = hostnames.mail;
};
imapHost = lib.mkOption {
type = lib.types.str;