configuration.nix/common/users.nix

21 lines
683 B
Nix
Raw Normal View History

2024-06-16 21:30:10 +05:30
{ config, pkgs, ... }: {
users.mutableUsers = false;
users.users = {
root = {
hashedPasswordFile = config.sops.secrets."passwd/root".path;
};
adtya = {
uid = 1000;
hashedPasswordFile = config.sops.secrets."passwd/adtya".path;
description = "Adithya Nair";
2024-06-16 21:30:10 +05:30
isNormalUser = true;
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPxDgoV9yf+yPnp4pt5EWgo7uC25W66ehoL/rlshVW+8 Skipper"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPodFFNUK16y9bjHVMhr+Ykro3v1FVLbmqKg7mjMv3Wz Kowalski"
];
};
};
}