mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
separate as a module
This commit is contained in:
15
nixos/modules/user.nix
Normal file
15
nixos/modules/user.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs, user, ... }: {
|
||||
programs.zsh.enable = true;
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users.${user} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.getty.autologinUser = user;
|
||||
}
|
Reference in New Issue
Block a user