feat(zsh): add zsh as default user shell
This commit is contained in:
parent
8b69346b1f
commit
db66adcc8c
4 changed files with 31 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
|
|
14
homes/x86_64-linux/rafiq/programs/zsh.nix
Normal file
14
homes/x86_64-linux/rafiq/programs/zsh.nix
Normal 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;
|
||||
};
|
||||
}
|
14
modules/nixos/cli/default.nix
Normal file
14
modules/nixos/cli/default.nix
Normal 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
|
||||
}
|
||||
];
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
users.users."${config.system.mainUser}" = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue