feat(zsh): add zsh as default user shell

This commit is contained in:
Mohammad Rafiq 2025-05-18 17:36:14 +08:00
parent 8b69346b1f
commit db66adcc8c
No known key found for this signature in database
4 changed files with 31 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [ imports = [
./programs/git.nix ./programs/git.nix
./programs/hyprland.nix ./programs/hyprland.nix
./programs/zsh.nix
]; ];
home.stateVersion = "24.11"; home.stateVersion = "24.11";
@ -27,6 +28,7 @@
git commit -a git commit -a
'') '')
]; ];
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
}; };

View file

@ -0,0 +1,14 @@
{ config, lib, ... }:
{
programs.zsh = {
enable = true;
enableCompletions = true;
autosuggestion = true;
enableVteIntegration = true;
syntaxHighlighting.enable = true;
history.share = true;
history.size = 10000;
history.ignoreDups = true;
history.ignoreSpace = true;
};
}

View file

@ -0,0 +1,14 @@
{config, lib,...}:
{
imports = [];
options.cli = {};
config = lib.mkMerge [
{
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
environment.pathsToLink = [ "/share/zsh" ]; # enables completion
}
];
}

View file

@ -2,6 +2,7 @@
{ {
config = lib.mkMerge [ config = lib.mkMerge [
{ {
users.defaultUserShell = pkgs.zsh;
users.users."${config.system.mainUser}" = { users.users."${config.system.mainUser}" = {
isNormalUser = true; isNormalUser = true;
initialPassword = "1"; initialPassword = "1";