configuration.nix/users/default.nix

18 lines
493 B
Nix
Raw Normal View History

2023-03-25 22:10:09 +05:30
{pkgs, ...}: let
2023-03-15 22:11:59 +05:30
user = import ./user.nix;
2023-03-25 22:10:09 +05:30
in {
2023-03-27 22:15:06 +05:30
services.getty.autologinUser = user.primary.userName;
2023-03-15 22:11:59 +05:30
users.mutableUsers = false;
users.users = {
root.hashedPassword = user.root.hashedPassword;
"${user.primary.userName}" = {
uid = 1000;
hashedPassword = user.primary.hashedPassword;
description = user.primary.realName;
isNormalUser = true;
2023-03-25 22:10:09 +05:30
extraGroups = ["docker" "libvirtd" "networkmanager" "tss" "wheel"];
2023-03-15 22:11:59 +05:30
shell = pkgs.zsh;
};
};
}