1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-13 04:04:35 +03:00
mobile-nixos/examples/installer/modules/user.nix
Samuel Dionne-Riel 8b84960f16 examples/installer: Add input group to user
For testing purposes
2022-10-20 20:43:26 -04:00

23 lines
422 B
Nix

{ lib, ... }:
{
users.users.nixos = {
isNormalUser = true;
extraGroups = [
"input"
"networkmanager"
"video"
"wheel"
];
};
security.sudo = {
enable = true;
wheelNeedsPassword = lib.mkForce false;
};
# Some systems allows the use of TTYs, e.g. the pinephone does.
# Let's not make it needlessly annoying to use for them.
services.getty.autologinUser = "nixos";
}