fix(zsh): add zsh system wide

This commit is contained in:
Mohammad Rafiq 2025-05-18 17:51:56 +08:00
parent db66adcc8c
commit 3a949f2056
No known key found for this signature in database
3 changed files with 11 additions and 4 deletions

View file

@ -2,8 +2,6 @@
{
programs.zsh = {
enable = true;
enableCompletions = true;
autosuggestion = true;
enableVteIntegration = true;
syntaxHighlighting.enable = true;
history.share = true;

View file

@ -1,4 +1,4 @@
{config, lib,...}:
{config, lib, pkgs, ...}:
{
imports = [];

View file

@ -2,11 +2,20 @@
{
config = lib.mkMerge [
{
users.defaultUserShell = pkgs.zsh;
users.mutableUsers = false;
users.groups.users = {
gid = 100;
members = [ "${config.system.mainUser}" ];
};
users.users."${config.system.mainUser}" = {
linger = true;
uid = 1000;
isNormalUser = true;
initialPassword = "1";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
];
};
services.getty.autologinUser = config.system.mainUser;
}