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

@@ -61,7 +61,7 @@
perSystem = { system, pkgs, ... }: perSystem = { system, pkgs, ... }:
rec { rec {
formatter = pkgs.nixpkgs-fmt; formatter = pkgs.nixfmt-rfc-style;
devShells.default = with pkgs; mkShell { devShells.default = with pkgs; mkShell {
packages = [ packages = [
nixd nixd

View File

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

View File

@@ -36,6 +36,7 @@
liberation_ttf liberation_ttf
]; ];
programs = { programs = {
git.enable = true; 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; adb.enable = true;
gamemode.enable = true; gamemode.enable = true;
}; };

View File

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

View File

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

View File

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