-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b7a191
commit d9d14f7
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
enable = true; | ||
|
||
userName = "Thiago Kenji Okada"; | ||
userEmail = "[email protected]"; | ||
userEmail = config.meta.email; | ||
package = pkgs.gitFull.override { | ||
# Use SSH from macOS instead with support for Keyring | ||
# https://github.com/NixOS/nixpkgs/issues/62353 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,11 @@ with lib; | |
type = types.str; | ||
default = "thiagoko"; | ||
}; | ||
email = mkOption { | ||
description = "Main e-mail"; | ||
type = types.str; | ||
default = "[email protected]"; | ||
}; | ||
configPath = mkOption { | ||
description = "Location of this config"; | ||
type = types.path; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,7 @@ in | |
acceptTerms = true; | ||
certs.${cfg.domain} = { | ||
inherit group; | ||
email = "[email protected]"; | ||
inherit (config.meta) email; | ||
dnsProvider = lib.mkIf (!cfg.certs.useHttpServer) "duckdns"; | ||
credentialsFile = lib.mkIf (!cfg.certs.useHttpServer) cfg.environmentFile; | ||
listenHTTP = lib.mkIf cfg.certs.useHttpServer ":${toString httpPort}"; # any other port needs to be proxied | ||
|