mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
797c77a00a
This replaces some derivation outputs by simple strings rather than full Nix store paths. This removes the need to download the whole derivation when all we need is a static string.
23 lines
465 B
Nix
23 lines
465 B
Nix
{ 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}
|
|
'';
|
|
};
|
|
}
|