dotfiles/nixos/common/users.nix
magic_rb 0c6299e747
Reformat nixos/common/users.nix
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-30 14:55:51 +01:00

28 lines
543 B
Nix

{
secret,
pkgs,
...
}: {
users = {
mutableUsers = false;
users.root.hashedPassword = secret.passwordHashes.main or "";
users.main = {
isNormalUser = true;
home = "/home/main";
hashedPassword = secret.passwordHashes.main or "";
description = "main";
uid = 1000;
extraGroups = ["wheel" "audio"];
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)"];
};
groups.main = {
gid = 1000;
};
};
}