1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-13 15:57:47 +00:00
home-manager/tests/modules/programs/glab/credential-helper.nix
William Phetsinorath 7f82387121
Add Glab
2024-10-14 14:23:13 +02:00

21 lines
427 B
Nix

{ config, lib, pkgs, ... }:
{
programs.glab = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [ "https://gitlab.com" "https://gitlab.example.com" ];
};
};
programs.git.enable = true;
test.stubs.glab = { };
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config \
${./credential-helper.git.conf}
'';
}