mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
22 lines
569 B
Nix
22 lines
569 B
Nix
{ config, ... }:
|
|
{
|
|
programs.delta = {
|
|
enable = true;
|
|
enableGitIntegration = false;
|
|
package = config.lib.test.mkStubPackage {
|
|
name = "delta";
|
|
buildScript = /* sh */ ''
|
|
mkdir -p $out/bin
|
|
echo "#!/bin/sh" > $out/bin/delta
|
|
chmod +x $out/bin/delta
|
|
'';
|
|
};
|
|
options.features = "line-numbers decorations";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/git/config
|
|
# the wrapper should be created only if git integration is disabled
|
|
assertFileExists home-path/bin/.delta-wrapped
|
|
'';
|
|
}
|