refactor(home): add zoxide, nix-index and ripgrep to home module

This commit is contained in:
Mohammad Rafiq 2025-06-23 16:01:08 +08:00
parent 14881201ac
commit 08124bfb91
No known key found for this signature in database
2 changed files with 9 additions and 11 deletions

View file

@ -12,7 +12,13 @@
enable = true;
nix-direnv.enable = true;
};
zoxide.enable = true;
nix-index.enable = true;
nix-index-database.comma.enable = true;
};
persistDirs = [
".local/share/zoxide"
];
home = {
shellAliases = {
windows = "systemctl reboot --boot-loader-entry=auto-windows";
@ -22,6 +28,7 @@
ai = "aichat -r %shell% -e";
};
packages = with pkgs; [
ripgrep
aichat
devenv
pantheon.rebuild

View file

@ -1,9 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{ config, lib, ... }:
let
inherit (lib) mkOption;
inherit (lib.types) listOf str;
@ -27,13 +22,9 @@ in
persistDirs = [
".ssh"
".config/sops/age"
".local/share/zoxide"
];
home.packages = with pkgs; [ ripgrep ];
programs = {
zoxide.enable = true;
nix-index.enable = true;
nix-index-database.comma.enable = true;
ssh = {
enable = true;
extraConfig = ''