fork/home-manager

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

Janikatuin: add disable key options (#3754)215af625

master
1.0 KiB39 linesraw
1{ lib, ... }:
2
3{
4  programs = {
5    atuin.enable = true;
6    atuin.flags = [ "--disable-ctrl-r" "--disable-up-arrow" ];
7    bash = {
8      enable = true;
9      enableCompletion = false;
10    };
11    zsh.enable = true;
12    fish.enable = true;
13  };
14
15  # Needed to avoid error with dummy fish package.
16  xdg.dataFile."fish/home-manager_generated_completions".source =
17    lib.mkForce (builtins.toFile "empty" "");
18
19  test.stubs = {
20    atuin = { };
21    bash-preexec = { };
22  };
23
24  nmt.script = ''
25    assertFileExists home-files/.bashrc
26    assertFileContains \
27      home-files/.bashrc \
28      "eval \"\$(@atuin@/bin/atuin init bash '--disable-ctrl-r' '--disable-up-arrow')\""
29
30    assertFileExists home-files/.zshrc
31    assertFileContains \
32      home-files/.zshrc \
33      "eval \"\$(@atuin@/bin/atuin init zsh '--disable-ctrl-r' '--disable-up-arrow')\""
34    assertFileExists home-files/.config/fish/config.fish
35    assertFileContains \
36      home-files/.config/fish/config.fish \
37      "@atuin@/bin/atuin init fish --disable-ctrl-r --disable-up-arrow | source"
38  '';
39}