initial commit

This commit is contained in:
2024-11-09 11:52:23 +05:00
commit 6bef6874b7
11 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{ config, pkgs, font, ... }:
{
programs.alacritty = {
enable = true;
settings = {
env = {
"TERM" = "alacritty";
};
terminal.shell.program = "zsh";
font = {
size = 12;
normal.family = font;
bold.family = font;
italic.family = font;
};
};
};
}

View File

@@ -0,0 +1,25 @@
{ config, lib, pkgs, userName, userEmail, ... }:
{
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
userName = userName;
userEmail = userEmail;
extraConfig = {
gpg = {
format = "ssh";
};
"gpg \"ssh\"" = {
program = "${lib.getExe' pkgs._1password-gui "op-ssh-sign"}";
};
commit = {
gpgsign = true;
};
user = {
signingKey = "~/.ssh/id_ed25519.pub";
};
};
};
}

View File

@@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
programs.neovim.enable = true;
}

View File

@@ -0,0 +1,10 @@
{ config, pkgs, ... }:
let
onePassPath = "~/.1password/agent.sock";
in {
programs.ssh = {
enable = true;
extraConfig = "IdentityAgent ${onePassPath}";
};
}

View File

@@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
programs.starship.enable = true;
}

View File

@@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
update = "sudo nixos-rebuild switch --flake ~/.dotfiles && home-manager switch --flake ~/.dotfiles";
".." = "cd ..";
ls = "exa";
vim = "nvim";
grep = "rg";
du = "dust";
rm = "rip";
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
};
};
}