diff --git a/modules/home-manager/git.nix b/modules/home-manager/git.nix index f16871c..0719b47 100644 --- a/modules/home-manager/git.nix +++ b/modules/home-manager/git.nix @@ -1,4 +1,9 @@ -{ pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: { home.packages = with pkgs; [ git-credential-oauth @@ -11,7 +16,7 @@ user.email = "leonhard.kost@gmail.com"; credential.helper = [ "cache --timeout 21600" - "oauth" # Eventually with optional -device flag + ("oauth" + lib.optionalString (!config.kekleo.graphical) " -device") ]; }; };