aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/git/git-with-str-extra-config.nix
blob: 3dbc497a5eabf9066fad432f40a644a5c07b414b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.git = {
      enable = true;
      package = pkgs.gitMinimal;
      extraConfig = ''
        This can be anything.
      '';
      userEmail = "user@example.org";
      userName = "John Doe";
    };

    nmt.script = ''
      assertFileExists home-files/.config/git/config
      assertFileContent home-files/.config/git/config \
        ${./git-with-str-extra-config-expected.conf}
    '';
  };
}