fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Viacheslav Lotsmanovprograms.git: make signing key id be optional (#1886)cc60c22c

master
462 B22 linesraw
1{ pkgs, ... }: {
2  config = {
3    programs.git = {
4      enable = true;
5      userName = "John Doe";
6      userEmail = "user@example.org";
7
8      signing = {
9        gpgPath = "path-to-gpg";
10        key = null;
11        signByDefault = true;
12      };
13    };
14
15    nmt.script = ''
16      assertFileExists home-files/.config/git/config
17      assertFileContent home-files/.config/git/config ${
18        ./git-without-signing-key-id-expected.conf
19      }
20    '';
21  };
22}