hosts: split zsh into a module
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
|
||||
perSystem = { system, pkgs, ... }:
|
||||
rec {
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
devShells.default = with pkgs; mkShell {
|
||||
packages = [
|
||||
nixd
|
||||
|
@@ -5,6 +5,7 @@ let
|
||||
commonModules = [
|
||||
./nvim.nix
|
||||
./nix.nix
|
||||
./modules/zsh
|
||||
{
|
||||
_module.args = globalArgs;
|
||||
}
|
||||
|
@@ -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;
|
||||
};
|
||||
|
@@ -16,7 +16,6 @@
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
}
|
||||
|
@@ -14,7 +14,6 @@
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
||||
time.timeZone = "Asia/Kolkata";
|
||||
system.stateVersion = "21.05";
|
||||
|
13
hosts/modules/zsh/default.nix
Normal file
13
hosts/modules/zsh/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
histSize = 30000;
|
||||
enableBashCompletion = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
highlightStyle = "fg=yellow,bold";
|
||||
};
|
||||
};
|
||||
}
|
@@ -17,7 +17,6 @@
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
}
|
||||
|
@@ -17,7 +17,5 @@
|
||||
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
Reference in New Issue
Block a user