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 3478304fb8
No known key found for this signature in database
4 changed files with 30 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [
./programs/git.nix
./programs/hyprland.nix
./programs/zsh.nix
];
home.stateVersion = "24.11";
@ -27,6 +28,7 @@
git commit -a
'')
];
home.sessionVariables = {
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,13 @@
{config, lib,...}:
{
imports = [];
options.cli = {};
config = lib.mkMerge [
{
programs.zsh.enable = true;
environment.pathsToLink = ["/share/zsh"];
}
];
}

View file

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