23 lines
530 B
Nix
23 lines
530 B
Nix
{ pkgs, config, lib, ... }:
|
|
let
|
|
user = config.profile.user.name;
|
|
fullName = config.profile.user.fullName;
|
|
in
|
|
{
|
|
users.users.${user} = {
|
|
isNormalUser = true;
|
|
description = fullName;
|
|
extraGroups = [ "networkmanager" "wheel" "docker" "adbusers" "scanner" "lp" "podman" ];
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
users.groups.work = {
|
|
name = "work";
|
|
gid = 5555;
|
|
members = [ user ];
|
|
};
|
|
|
|
nix.settings.trusted-users = [ user ];
|
|
services.getty.autologinUser = lib.mkIf config.profile.user.getty.autoLogin user;
|
|
}
|