summaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-04 12:55:41 -0500
committerSeth Flynn <[email protected]>2025-03-04 12:55:41 -0500
commit5fd79c0fafb17f6ecce88c1aeeef17efacf6ada5 (patch)
tree3be67f377a9eef77f0aebb891ba628c1ddbdc348 /modules/home
parent3b38ad0047bd1402402d6842f05d4a2efcabefeb (diff)
home/riffdiff: drop in favor of upstream module
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/riff.nix50
1 files changed, 0 insertions, 50 deletions
diff --git a/modules/home/riff.nix b/modules/home/riff.nix
deleted file mode 100644
index dadc9cf..0000000
--- a/modules/home/riff.nix
+++ /dev/null
@@ -1,50 +0,0 @@
-# TODO: Upstream this
-{
- config,
- lib,
- pkgs,
- ...
-}:
-let
- cfg = config.programs.git.riff;
- cfg' = config.programs.git;
-
- exe = baseNameOf (lib.getExe cfg.package);
-in
-{
- options.programs.git.riff = {
- enable = lib.mkEnableOption "diff filtering through `riff`";
-
- package = lib.mkPackageOption pkgs "riffdiff" { };
- };
-
- config = lib.mkIf cfg.enable {
- assertions = [
- {
- assertion =
- let
- enabled = [
- cfg'.delta.enable
- cfg'.diff-so-fancy.enable
- cfg'.difftastic.enable
- cfg.enable
- ];
- in
- lib.count lib.id enabled <= 1;
- message = "Only one of 'programs.git.delta.enable' or 'programs.git.difftastic.enable' or 'programs.git.diff-so-fancy.enable' or `programs.git.riff.enable` can be set to true at the same time.";
- }
- ];
-
- home.packages = [ cfg.package ];
-
- programs.git.iniContent = {
- pager = {
- diff = exe;
- log = exe;
- show = exe;
- };
-
- interactive.diffFilter = exe + " --color=on";
- };
- };
-}