Devel module

This commit is contained in:
Nathan McCarty 2024-11-29 05:46:01 +00:00
parent 23208659b1
commit 085a4aa66f
4 changed files with 55 additions and 3 deletions

View file

@ -24,6 +24,7 @@
../../modules/programs/neovim.nix
(import ../../modules/programs/git.nix { })
../../modules/programs/core.nix
../../modules/programs/devel.nix
];
home.username = "nathan";
home.homeDirectory = "/home/nathan/";

View file

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
{
home.packages = with pkgs; [
# Git addons
git-secret
delta
# nix utilities
comma
nix-du
sops
hut
];
programs = {
direnv.enable = true;
};
}

View file

@ -1,4 +1,7 @@
{ }:
{
gitUserName ? "Nathan McCarty",
gitUserEmail ? "thatonelutenist@stranger.systems",
}:
{
config,
lib,
@ -10,8 +13,8 @@
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = lib.mkDefault "Nathan McCarty";
userEmail = lib.mkDefault "thatonelutenist@stranger.systems";
userName = lib.mkDefault gitUserName;
userEmail = lib.mkDefault gitUserEmail;
ignores = [
"**/*~"
"*~"

View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}:
{
programs.ssh = {
# SSH configuration
enable = true;
# extra config to set the ciphers
extraConfig = ''
Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
'';
# Enable compression
compression = true;
# enable session reuse
controlMaster = "auto";
controlPersist = "10m";
# Configure known hosts
matchBlocks =
{
};
};
}