Headless Git credential storage
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{ osConfig, lib, pkgs, ... }:
|
||||
let
|
||||
hasGui = osConfig.services.dbus.implementation == "dbus";
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
home.packages = with pkgs; lib.mkIf hasGui [
|
||||
git-credential-manager
|
||||
];
|
||||
|
||||
@@ -15,8 +18,8 @@
|
||||
init.defaultBranch = "main";
|
||||
|
||||
credential = {
|
||||
helper = "manager";
|
||||
credentialStore = "secretservice";
|
||||
helper = if hasGui then "manager" else "store";
|
||||
credentialStore = lib.mkIf hasGui "secretservice";
|
||||
|
||||
"https://github.com" = {
|
||||
username = "kpghostfox";
|
||||
@@ -30,4 +33,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,4 +35,4 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user