1
0
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:
andrey_varnavskiy
2024-11-25 11:46:30 +05:00
parent a953507211
commit b8f08e9301
8 changed files with 60 additions and 0 deletions

15
nixos/modules/user.nix Normal file
View 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;
}