mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 18:34:36 +00:00
zsh configured
This commit is contained in:
parent
3e14a0acb8
commit
2272e5efd8
4 changed files with 259 additions and 14 deletions
|
|
@ -1,74 +0,0 @@
|
|||
{ config, lib, pkgs, userVars, ... }:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.shell;
|
||||
in
|
||||
{
|
||||
options.dotfiles.shell = {
|
||||
enable = lib.mkEnableOption "Shell, Git, GPG, and CLI environment";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
wget
|
||||
tree
|
||||
tealdeer
|
||||
gnupg
|
||||
pass
|
||||
p7zip
|
||||
btop
|
||||
helix
|
||||
opencode
|
||||
];
|
||||
|
||||
home-manager.users."${userVars.username}" = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = userVars.fullName;
|
||||
email = userVars.email;
|
||||
};
|
||||
commit.gpgsign = true;
|
||||
gpg.program = "gpg";
|
||||
};
|
||||
signing = {
|
||||
key = userVars.gpgKey;
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
pinentry.package = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -lha";
|
||||
};
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
settings = {
|
||||
theme = "ayu_dark";
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue