adds a new specialArg to hosts: usernameList, which is a list of users determined through user/user.nix in the host/hostname dir. This touches syncthing, tuigreet, jibril, shells, and system removes the user.name field, and converts user.timezone to system.timezone. This is to move user content off of the host. This old system is replaced with dynamic user creation based on the usernameList variable Because this removes the users.users.defaultUser shells now use the (more appropriate) users.defaultUserShell
20 lines
530 B
Nix
20 lines
530 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options = {
|
|
zsh.enable = lib.mkEnableOption "Enables zsh";
|
|
zsh.setDefault = lib.mkEnableOption "Sets zsh as the default user's shell";
|
|
};
|
|
|
|
config = lib.mkIf config.zsh.enable {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestions.enable = true;
|
|
histFile = "$HOME/.config/zsh/history";
|
|
histSize = 2000;
|
|
};
|
|
users.defaultUserShell = lib.mkIf config.zsh.setDefault pkgs.zsh;
|
|
environment.shells = with pkgs; [ zsh ];
|
|
};
|
|
}
|