Devel module
This commit is contained in:
parent
23208659b1
commit
085a4aa66f
|
@ -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/";
|
||||
|
|
22
home-manager/modules/programs/devel.nix
Normal file
22
home-manager/modules/programs/devel.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 = [
|
||||
"**/*~"
|
||||
"*~"
|
||||
|
|
26
home-manager/modules/programs/ssh.nix
Normal file
26
home-manager/modules/programs/ssh.nix
Normal 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 =
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue