fork/home-manager

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

Tamás Hetesipet: Add support for tags in snippets (#1883)1e7e8ac7

master
621 B29 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.pet = {
8      enable = true;
9      selectcmdPackage = pkgs.writeScriptBin "pet-cmd" "" // {
10        outPath = "@pet-cmd@";
11      };
12      snippets = [{
13        description = "git: search full history for regex";
14        command = "git log -p -G <regex>";
15        tag = [ "git" "regex" ];
16      }];
17    };
18
19    nixpkgs.overlays = [
20      (self: super: {
21        pet = pkgs.writeScriptBin "pet" "" // { outPath = "@pet@"; };
22      })
23    ];
24
25    nmt.script = ''
26      assertFileContent home-files/.config/pet/snippet.toml ${./snippet.toml}
27    '';
28  };
29}