added rg fzf

This commit is contained in:
Vivian 2021-10-17 23:34:05 +02:00
parent 13e3ccb7b0
commit 40166f0c26
No known key found for this signature in database
GPG key ID: A3923C699D1A3BDA
2 changed files with 14 additions and 16 deletions

View file

@ -13,6 +13,7 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
interactiveShellInit = '' interactiveShellInit = ''
source "${pkgs.grml-zsh-config}/etc/zsh/zshrc" source "${pkgs.grml-zsh-config}/etc/zsh/zshrc"
export FZF_DEFAULT_COMMAND="${pkgs.ripgrep}/bin/rg --files --follow"
source "${pkgs.fzf}/share/fzf/key-bindings.zsh" source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
source "${pkgs.fzf}/share/fzf/completion.zsh" source "${pkgs.fzf}/share/fzf/completion.zsh"
eval "$(${pkgs.zoxide}/bin/zoxide init zsh)" eval "$(${pkgs.zoxide}/bin/zoxide init zsh)"
@ -59,6 +60,7 @@
git git
htop htop
rsync rsync
ripgrep
vim vim
zoxide zoxide
]; ];

View file

@ -1,9 +1,4 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
[ [
@ -35,7 +30,7 @@
vim vim
]; ];
# Disable the firewall # Disable the firewall as we need all the ports
networking.firewall.enable = false; networking.firewall.enable = false;
# Force-enable Cgroupv2 # Force-enable Cgroupv2
@ -44,6 +39,7 @@
# Ensure `mount` and `grep` are available # Ensure `mount` and `grep` are available
systemd.services.k3s.path = [ pkgs.gnugrep pkgs.utillinux ]; systemd.services.k3s.path = [ pkgs.gnugrep pkgs.utillinux ];
# Enable k3s as a master node
services.k3s = { services.k3s = {
enable = true; enable = true;
role = "server"; role = "server";