fix(modules/home/cli): make stuff work with env vars
This commit is contained in:
parent
d4453d1a59
commit
798a21690e
4 changed files with 18 additions and 20 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.cli.editor == "nvf") {
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
settings.vim = {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue