mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
20 lines
428 B
Nix
20 lines
428 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
programs.git-credential-oauth = {
|
||
|
enable = true;
|
||
|
extraFlags = [ "-device" ];
|
||
|
};
|
||
|
|
||
|
programs.git = { enable = true; };
|
||
|
|
||
|
test.stubs.git-credential-oauth = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.config/git/config
|
||
|
assertFileContains \
|
||
|
home-files/.config/git/config \
|
||
|
"${config.programs.git-credential-oauth.package}/bin/git-credential-oauth -device"
|
||
|
'';
|
||
|
}
|