diff --git a/flake.nix b/flake.nix index 41cf9da..e5f3951 100644 --- a/flake.nix +++ b/flake.nix @@ -128,7 +128,7 @@ mail.server = "noahmasur.com"; mail.imapHost = "imap.purelymail.com"; mail.smtpHost = "smtp.purelymail.com"; - dotfilesRepo = "git@github.com:nmasur/dotfiles"; + dotfilesRepo = "https://github.com/nmasur/dotfiles"; hostnames = { git = "git.${baseName}"; metrics = "metrics.${baseName}"; diff --git a/modules/common/default.nix b/modules/common/default.nix index 09b94e0..ad578e8 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -59,7 +59,7 @@ }; dotfilesRepo = lib.mkOption { type = lib.types.str; - description = "Link to dotfiles repository."; + description = "Link to dotfiles repository HTTPS URL."; }; unfreePackages = lib.mkOption { type = lib.types.listOf lib.types.str; diff --git a/modules/common/repositories/dotfiles.nix b/modules/common/repositories/dotfiles.nix index 5f7ce27..fda2dc1 100644 --- a/modules/common/repositories/dotfiles.nix +++ b/modules/common/repositories/dotfiles.nix @@ -14,13 +14,8 @@ [ "writeBoundary" ] '' if [ ! -d "${config.dotfilesPath}" ]; then $DRY_RUN_CMD mkdir --parents $VERBOSE_ARG $(dirname "${config.dotfilesPath}") - - # Force HTTPS because anonymous SSH doesn't work - GIT_CONFIG_COUNT=1 \ - GIT_CONFIG_KEY_0="url.https://github.com/.insteadOf" \ - GIT_CONFIG_VALUE_0="git@github.com:" \ - $DRY_RUN_CMD \ - ${pkgs.git}/bin/git clone ${config.dotfilesRepo} "${config.dotfilesPath}" + $DRY_RUN_CMD ${pkgs.git}/bin/git \ + clone ${config.dotfilesRepo} "${config.dotfilesPath}" fi '';