diff --git a/home-manager/machines/wsl/home.nix b/home-manager/machines/wsl/home.nix index c0e943e..382796d 100644 --- a/home-manager/machines/wsl/home.nix +++ b/home-manager/machines/wsl/home.nix @@ -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/"; diff --git a/home-manager/modules/programs/devel.nix b/home-manager/modules/programs/devel.nix new file mode 100644 index 0000000..d6019d2 --- /dev/null +++ b/home-manager/modules/programs/devel.nix @@ -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; + }; +} diff --git a/home-manager/modules/programs/git.nix b/home-manager/modules/programs/git.nix index 1dace2b..2874d85 100644 --- a/home-manager/modules/programs/git.nix +++ b/home-manager/modules/programs/git.nix @@ -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 = [ "**/*~" "*~" diff --git a/home-manager/modules/programs/ssh.nix b/home-manager/modules/programs/ssh.nix new file mode 100644 index 0000000..f3a2f24 --- /dev/null +++ b/home-manager/modules/programs/ssh.nix @@ -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 = + { + }; + }; +}