fork/home-manager
git clone https://git.julia.blue/fork/home-manager
9d53afb7
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . git = { 8enable = true ; 9package = pkgs . gitMinimal ; 10extraConfig = '' 11This can be anything. 12'' ; 13userEmail = "user@example.org" ; 14userName = "John Doe" ; 15}; 16 17test . asserts . warnings . expected = [ '' 18Using programs.git.extraConfig as a string option is 19deprecated and will be removed in the future. Please 20change to using it as an attribute set instead. 21'' ]; 22 23nmt . script = '' 24assertFileExists home-files/.config/git/config 25assertFileContent home-files/.config/git/config \ 26${ ./git-with-str-extra-config-expected.conf } 27'' ; 28}; 29}