nix/hosts/laptop/config/users.nix

25 lines
638 B
Nix
Raw Normal View History

2024-12-02 03:57:34 -07:00
{ pkgs, secrets, ... }:
{
# Make users fully declarative
users.mutableUsers = false;
# Set default shell to Zsh
users.defaultUserShell = pkgs.zsh;
users.users = {
# Main ty user
ty = {
isNormalUser = true;
useDefaultShell = true;
description = "Tyler Beckman";
extraGroups = [
"networkmanager" # Can manage networking
"wheel" # Can use sudo
];
hashedPassword = secrets.passwords.users.ty;
};
};
# Enable polkit user authentication
security.polkit.enable = true;
}