configuration.nix/common/users/default.nix

22 lines
522 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ pkgs, ... }:
let
2023-03-15 22:11:59 +05:30
user = import ./user.nix;
2023-03-29 21:48:55 +05:30
in
{
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-04-08 14:39:53 +05:30
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
2023-03-15 22:11:59 +05:30
shell = pkgs.zsh;
2023-04-10 23:07:22 +05:30
openssh.authorizedKeys.keys = [
user.primary.sshPublicKey
];
2023-03-15 22:11:59 +05:30
};
};
}