fix(modules/home/cli): make stuff work with env vars

This commit is contained in:
Mohammad Rafiq 2025-05-19 16:56:46 +08:00
parent d4453d1a59
commit 798a21690e
No known key found for this signature in database
4 changed files with 18 additions and 20 deletions

View file

@ -5,22 +5,4 @@
./cli/zsh.nix
];
home.sessionVariables = {
EDITOR = "nvim";
};
home.shellAliases = {
edit = "nvim $(fzf)";
};
programs.zoxide.enable = true;
home.persistence."/persist/home/rafiq".directories = [ ".local/share/zoxide" ];
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
ripgrep
fzf
pantheon.rebuild
];
}

View file

@ -9,11 +9,26 @@
cli.editor = "nvf";
cli.file-browser = "yazi";
home.shellAliases.v = "nvim";
home.shellAliases = {
edit = "nvim $(fzf)";
};
programs.zoxide.enable = true;
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
ripgrep
fzf
pantheon.rebuild
];
home.persistence."/persist/home/rafiq" = {
directories = [
".ssh"
".config/sops/age"
"repos"
".local/share/zoxide"
];
allowOther = true;
};

View file

@ -1,6 +1,7 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.editor == "nvf") {
home.sessionVariables.EDITOR = "nvim";
programs.nvf = {
enable = true;
settings.vim = {

View file

@ -3,7 +3,7 @@
config =
lib.mkIf (config.cli.file-browser == "yazi")
{
home.shellAliases.FILE-BROWSER = "yazi";
home.sessionVariables.FILE_BROWSER = "yazi";
programs.yazi = {
enable = true;
shellWrapperName = "t";