mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
initial dendritic migration
This commit is contained in:
parent
86fe70288b
commit
168633cf07
12 changed files with 254 additions and 147 deletions
72
modules/shell.nix
Normal file
72
modules/shell.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
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.semere = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Semere M. Mebrahtom";
|
||||
email = "semere.meharena1@gmail.com";
|
||||
};
|
||||
commit.gpgsign = true;
|
||||
gpg.program = "gpg";
|
||||
};
|
||||
signing = {
|
||||
key = "451054EEC0D2AFD1741D4E6A7FC937214DF30488";
|
||||
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;
|
||||
settings = {
|
||||
editor = {
|
||||
line-numbers = "relative";
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue