From 8c8c80c384bc6c3eb6aa7b565bebddeff2dcc602 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Sat, 31 Jan 2026 19:39:01 +0100 Subject: [PATCH] feat: add git oauth -device flag for non graphical system --- modules/home-manager/git.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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") ]; }; };