fix(zsh): add zsh system wide
This commit is contained in:
parent
db66adcc8c
commit
3a949f2056
3 changed files with 11 additions and 4 deletions
|
@ -2,8 +2,6 @@
|
|||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletions = true;
|
||||
autosuggestion = true;
|
||||
enableVteIntegration = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
history.share = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{config, lib,...}:
|
||||
{config, lib, pkgs, ...}:
|
||||
{
|
||||
imports = [];
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue