aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-03-15 02:37:56 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-03-15 02:38:36 +0530
commitc73e6985af301cae80c5e09a37a1b8d062f32294 (patch)
tree1d764b742457520a08aacd8e3d8c8c00834795fd /modules
parentd2333f1c065e10ae64bca006e6efa74f895e3876 (diff)
downloadhome-manager-config-c73e6985af301cae80c5e09a37a1b8d062f32294.tar.gz
home-manager-config-c73e6985af301cae80c5e09a37a1b8d062f32294.zip
Removed steam and added openssh configuration
Diffstat (limited to 'modules')
-rw-r--r--modules/tools/default.nix2
-rw-r--r--modules/tools/openssh/default.nix39
-rw-r--r--modules/tools/steam/default.nix18
3 files changed, 40 insertions, 19 deletions
diff --git a/modules/tools/default.nix b/modules/tools/default.nix
index 771f015..f4af918 100644
--- a/modules/tools/default.nix
+++ b/modules/tools/default.nix
@@ -24,11 +24,11 @@
./nnn
./nvtop
./opencode
+ ./openssh
./pamixer
./playerctl
./rofi
./starship
- ./steam
./systemctl-tui
./tmux
./tor-browser
diff --git a/modules/tools/openssh/default.nix b/modules/tools/openssh/default.nix
new file mode 100644
index 0000000..f97ff45
--- /dev/null
+++ b/modules/tools/openssh/default.nix
@@ -0,0 +1,39 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+
+{
+ options.tools.openssh = {
+ enable = lib.mkEnableOption "Enables OpenSSH client.";
+ };
+
+ config = lib.mkIf config.tools.openssh.enable {
+ programs.ssh = {
+ enable = true;
+ package = pkgs.openssh;
+ enableDefaultConfig = false;
+ extraOptionOverrides = {
+ AddKeysToAgent = "yes";
+ ForwardAgent = "yes";
+ ServerAliveInterval = "60";
+ ServerAliveCountMax = "3";
+ VisualHostKey = "yes";
+ HashKnownHosts = "yes";
+ };
+ matchBlocks = {
+ "github.com" = {
+ hostname = "github.com";
+ user = "git";
+ identityFile = "${config.home.homeDirectory}/.ssh/github";
+ };
+ };
+ };
+
+ home.file.".ssh/config".text = ''
+ Include ~/.ssh/config.d/*.conf
+ '';
+ };
+}
diff --git a/modules/tools/steam/default.nix b/modules/tools/steam/default.nix
deleted file mode 100644
index 7d79765..0000000
--- a/modules/tools/steam/default.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-{
- options.tools.steam = {
- enable = lib.mkEnableOption "Enables steam.";
- };
-
- config = lib.mkIf config.tools.steam.enable {
- home.packages = with pkgs; [
- steam
- ];
- };
-}