Skip to content

Commit

Permalink
modules/meta: add email
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 22, 2023
1 parent 6b7a191 commit d9d14f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home-manager/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions modules/meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion nixos/server/duckdns-updater.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9d14f7

Please sign in to comment.