be a bit smarter about fzf module
This commit is contained in:
parent
c16ef44b2d
commit
a2732c6e6a
4 changed files with 18 additions and 12 deletions
|
@ -57,7 +57,7 @@
|
|||
|
||||
./hosts/toaster
|
||||
|
||||
./modules/basic-tools.nix
|
||||
./modules/basic-tools
|
||||
./modules/binary-caches.nix
|
||||
./modules/devtools.nix
|
||||
./modules/gnupg.nix
|
||||
|
@ -77,7 +77,7 @@
|
|||
|
||||
./hosts/microwave
|
||||
|
||||
./modules/basic-tools.nix
|
||||
./modules/basic-tools
|
||||
./modules/binary-caches.nix
|
||||
./modules/devtools.nix
|
||||
./modules/gnupg.nix
|
||||
|
@ -93,7 +93,7 @@
|
|||
modules = [
|
||||
sops-nix.nixosModules.sops
|
||||
./hosts/cirrus
|
||||
./modules/basic-tools.nix
|
||||
./modules/basic-tools
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -104,7 +104,7 @@
|
|||
sops-nix.nixosModules.sops
|
||||
microvm.nixosModules.host
|
||||
./hosts/dishwasher
|
||||
./modules/basic-tools.nix
|
||||
./modules/basic-tools
|
||||
./modules/binary-caches.nix
|
||||
|
||||
{
|
||||
|
|
|
@ -13,14 +13,6 @@
|
|||
audacity
|
||||
yt-dlp
|
||||
];
|
||||
# integrate fzf into shell, >23.05 only
|
||||
# to be moved to basic tools at some point
|
||||
programs = {
|
||||
fzf = {
|
||||
keybindings = true;
|
||||
fuzzyCompletion = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
{ lib, config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./fzf.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bat
|
||||
fd
|
10
modules/basic-tools/fzf.nix
Normal file
10
modules/basic-tools/fzf.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, config, ... }: {
|
||||
# integrate fzf into shell, >23.05 only
|
||||
programs =
|
||||
if (lib.toInt (lib.elemAt (lib.splitVersion config.system.nixos.release) 0) >= 23) then {
|
||||
fzf = {
|
||||
keybindings = true;
|
||||
fuzzyCompletion = true;
|
||||
};
|
||||
} else { };
|
||||
}
|
Loading…
Add table
Reference in a new issue