fix cli tools config
This commit is contained in:
parent
555068556f
commit
816b85e06e
9 changed files with 393 additions and 353 deletions
|
@ -34,12 +34,13 @@ in
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
eza.enable = true;
|
eza.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
zoxide.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
home.packages = attrValues {
|
home.packages = attrValues {
|
||||||
inherit (pkgs) any-nix-shell pwgen yt-dlp ripdrag yazi;
|
inherit (pkgs) any-nix-shell pwgen yt-dlp ripdrag;
|
||||||
inherit (pkgs) bat fd zoxide;
|
inherit (pkgs) fd;
|
||||||
|
|
||||||
rgFull = pkgs.ripgrep.override {withPCRE2 = true;};
|
rgFull = pkgs.ripgrep.override {withPCRE2 = true;};
|
||||||
};
|
};
|
||||||
|
@ -62,11 +63,6 @@ in
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
config.whitelist.prefix = ["/home"];
|
config.whitelist.prefix = ["/home"];
|
||||||
};
|
};
|
||||||
|
|
||||||
bat.enable = true;
|
|
||||||
eza.enable = true;
|
|
||||||
fzf.enable = true;
|
|
||||||
zoxide.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,18 +1,20 @@
|
||||||
{ config, options, lib, pkgs, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
inherit (lib.strings) concatStringsSep;
|
inherit (lib.strings) concatStringsSep;
|
||||||
|
|
||||||
|
cfg = config.modules.${user}.shell.toolset.btop;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.${user}.shell.toolset.btop = let
|
options.modules.${user}.shell.toolset.btop = {
|
||||||
inherit (lib.options) mkEnableOption;
|
enable = mkEnableOption "system-monitor";
|
||||||
in { enable = mkEnableOption "system-monitor"; };
|
};
|
||||||
|
|
||||||
config = mkIf config.modules.${user}.shell.toolset.btop.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${user}.programs.btop = let
|
home-manager.users.${user} = {
|
||||||
inherit (config.modules.themes) active;
|
packages = with pkgs; [ btop ];
|
||||||
in
|
|
||||||
{
|
programs.btop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
force_tty = false;
|
force_tty = false;
|
||||||
|
@ -89,4 +91,5 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${user}.programs.eza = {
|
home-manager.users.${user} = {
|
||||||
|
packages = with pkgs; [ eza ];
|
||||||
|
|
||||||
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
icons = "auto";
|
icons = "auto";
|
||||||
git = true;
|
git = true;
|
||||||
|
@ -23,4 +26,5 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
{ config, options, lib, pkgs, user, ... }:
|
{ config, options, lib, pkgs, user, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.attrsets) optionalAttrs;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
inherit (lib.modules) mkIf;
|
|
||||||
|
defShell = config.modules.${user}.shell.default;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.${user}.shell.toolset.fzf = let
|
options.modules.${user}.shell.toolset.fzf = {
|
||||||
inherit (lib.options) mkEnableOption;
|
enable = mkEnableOption "TUI Fuzzy Finder.";
|
||||||
in { enable = mkEnableOption "TUI Fuzzy Finder."; };
|
};
|
||||||
|
|
||||||
config = mkIf config.modules.${user}.shell.toolset.fzf.enable {
|
config = mkIf config.modules.${user}.shell.toolset.fzf.enable {
|
||||||
home-manager.users.${user}.programs.fzf = let
|
home-manager.users.${user} = {
|
||||||
defShell = config.modules.${user}.shell.default;
|
packages = with pkgs; [ fzf ];
|
||||||
in {
|
|
||||||
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = defShell == "zsh";
|
enableZshIntegration = defShell == "zsh";
|
||||||
|
@ -31,4 +33,5 @@ in
|
||||||
historyWidgetOptions = ["--sort" "--exact"];
|
historyWidgetOptions = ["--sort" "--exact"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ in
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
home.packages = attrValues {
|
home.packages = attrValues {
|
||||||
inherit (pkgs) act dura lazygit;
|
inherit (pkgs) git act dura lazygit;
|
||||||
inherit (pkgs.gitAndTools) gh git-open git-crypt;
|
inherit (pkgs.gitAndTools) gh git-open git-crypt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
@ -9,7 +9,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.modules.${user}.shell.toolset.starship.enable {
|
config = mkIf config.modules.${user}.shell.toolset.starship.enable {
|
||||||
home-manager.users.${user}.programs.starship = {
|
home-manager.users.${user} = {
|
||||||
|
packages = with pkgs; [ starship ];
|
||||||
|
|
||||||
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
format = "[╭](bold green) $username@$hostname$nix_shell: $directory$cmd_duration$git_branch$git_commit$git_state$git_status$line_break[╰](green bold)$character";
|
format = "[╭](bold green) $username@$hostname$nix_shell: $directory$cmd_duration$git_branch$git_commit$git_state$git_status$line_break[╰](green bold)$character";
|
||||||
|
@ -94,4 +97,5 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,10 @@ in
|
||||||
in { enable = mkEnableOption "terminal multiplexer"; };
|
in { enable = mkEnableOption "terminal multiplexer"; };
|
||||||
|
|
||||||
config = mkIf config.modules.${user}.shell.toolset.tmux.enable {
|
config = mkIf config.modules.${user}.shell.toolset.tmux.enable {
|
||||||
home-manager.users.${user}.programs.tmux = {
|
home-manager.users.${user} = {
|
||||||
|
packages = with pkgs; [ tmux ];
|
||||||
|
|
||||||
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
secureSocket = true;
|
secureSocket = true;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
|
@ -100,4 +103,5 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
@ -11,8 +11,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${user}.programs.yazi = {
|
home-manager.users.${user} = {
|
||||||
|
packages = with pkgs; [ yazi ];
|
||||||
|
|
||||||
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
22
modules/home/shell/toolset/zoxide.nix
Normal file
22
modules/home/shell/toolset/zoxide.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, lib, pkgs, user, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
|
cfg = config.modules.${user}.shell.toolset.zoxide;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.${user}.shell.toolset.zoxide = {
|
||||||
|
enable = mkEnableOption "system-monitor";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
packages = with pkgs; [ zoxide ];
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue