configuration.nix/users/default.nix
2023-03-24 13:05:51 +05:30

19 lines
442 B
Nix

{ pkgs, ... }:
let
user = import ./user.nix;
in
{
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;
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
};
};
}