Consolidate shell related packages
This commit is contained in:
@ -36,9 +36,7 @@ with lib.my;
|
|||||||
pass.enable = true;
|
pass.enable = true;
|
||||||
};
|
};
|
||||||
shell = {
|
shell = {
|
||||||
fzf.enable = true;
|
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
nnn.enable = true;
|
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
./editors/vscode.nix
|
./editors/vscode.nix
|
||||||
./security/gpg.nix
|
./security/gpg.nix
|
||||||
./security/pass.nix
|
./security/pass.nix
|
||||||
./shell/fzf.nix
|
|
||||||
./shell/git.nix
|
./shell/git.nix
|
||||||
./shell/nnn.nix
|
|
||||||
./shell/zsh.nix
|
./shell/zsh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
@ -65,5 +65,9 @@ with lib.my;
|
|||||||
users.users.${config.user.name} = mkAliasDefinitions options.user;
|
users.users.${config.user.name} = mkAliasDefinitions options.user;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
environment.extraInit =
|
||||||
|
concatStringsSep "\n"
|
||||||
|
(mapAttrsToList (n: v: "export ${n}=\"${v}\"") config.env);
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -1,21 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
with lib.my;
|
|
||||||
let cfg = config.modules.shell.fzf;
|
|
||||||
in {
|
|
||||||
options.modules.shell.fzf = {
|
|
||||||
enable = mkBoolOpt false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bind
|
|
||||||
];
|
|
||||||
home.programs.fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
defaultCommand = "fd --type f --hidden --follow --exclude .git";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
with lib.my;
|
|
||||||
let cfg = config.modules.shell.nnn;
|
|
||||||
in {
|
|
||||||
options.modules.shell.nnn = {
|
|
||||||
enable = mkBoolOpt false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.programs.nnn = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -9,27 +9,33 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
user.packages = with pkgs; [
|
||||||
|
fd
|
||||||
|
fzf
|
||||||
|
jq
|
||||||
|
nix-zsh-completions
|
||||||
|
nnn
|
||||||
|
ripgrep
|
||||||
|
zsh
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
zsh-fast-syntax-highlighting
|
zsh-fast-syntax-highlighting
|
||||||
zsh-history-substring-search
|
zsh-history-substring-search
|
||||||
];
|
];
|
||||||
|
|
||||||
home.programs.zsh = {
|
env = {
|
||||||
enable = true;
|
ZDOTDIR = "$XDG_CONFIG_HOME/zsh";
|
||||||
enableCompletion = true;
|
ZSH_CACHE = "$XDG_CACHE_HOME/zsh";
|
||||||
shellAliases = {
|
|
||||||
cp = "cp -iv";
|
|
||||||
mv = "mv -iv";
|
|
||||||
rm = "rm -v";
|
|
||||||
mkdir = "mkdir -v";
|
|
||||||
ls = "ls -h --color=auto --group-directories-first";
|
|
||||||
e = "nvim";
|
|
||||||
f = "nnn";
|
|
||||||
g = "git";
|
|
||||||
n = "nnn";
|
|
||||||
v = "nvim";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.configFile = {
|
||||||
|
"zsh" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Reference in New Issue
Block a user