hosts: split zsh into a module

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-06-29 17:16:25 +05:30
parent 0ecd267fa8
commit 4f96bcda1d
8 changed files with 16 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ let
commonModules = [
./nvim.nix
./nix.nix
./modules/zsh
{
_module.args = globalArgs;
}

View File

@@ -36,6 +36,7 @@
liberation_ttf
];
programs = {
git.enable = true;
@@ -46,17 +47,6 @@
};
};
zsh = {
enable = true;
histSize = 30000;
enableBashCompletion = true;
enableCompletion = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=yellow,bold";
};
};
adb.enable = true;
gamemode.enable = true;
};

View File

@@ -16,7 +16,6 @@
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;
system.stateVersion = "21.11";
}

View File

@@ -14,7 +14,6 @@
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;
time.timeZone = "Asia/Kolkata";
system.stateVersion = "21.05";

View File

@@ -0,0 +1,13 @@
{ ... }:
{
programs.zsh = {
enable = true;
histSize = 30000;
enableBashCompletion = true;
enableCompletion = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=yellow,bold";
};
};
}

View File

@@ -17,7 +17,6 @@
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;
system.stateVersion = "21.11";
}

View File

@@ -17,7 +17,5 @@
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;
system.stateVersion = "24.05";
}