2024-06-22 19:56:27 +05:30
|
|
|
{ config, pkgs, username, ... }: {
|
2024-06-30 23:31:42 +05:30
|
|
|
sops = {
|
|
|
|
secrets = {
|
|
|
|
"passwd/root" = {
|
|
|
|
mode = "400";
|
|
|
|
owner = config.users.users.root.name;
|
|
|
|
group = config.users.users.root.group;
|
|
|
|
neededForUsers = true;
|
|
|
|
};
|
|
|
|
"passwd/adtya" = {
|
|
|
|
mode = "400";
|
|
|
|
owner = config.users.users.root.name;
|
|
|
|
group = config.users.users.root.group;
|
|
|
|
neededForUsers = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-16 21:30:10 +05:30
|
|
|
users.mutableUsers = false;
|
|
|
|
users.users = {
|
|
|
|
root = {
|
|
|
|
hashedPasswordFile = config.sops.secrets."passwd/root".path;
|
|
|
|
};
|
2024-06-22 19:56:27 +05:30
|
|
|
${username} = {
|
2024-06-16 21:30:10 +05:30
|
|
|
uid = 1000;
|
2024-06-22 19:56:27 +05:30
|
|
|
hashedPasswordFile = config.sops.secrets."passwd/${username}".path;
|
2024-06-16 21:57:31 +05:30
|
|
|
description = "Adithya Nair";
|
2024-06-16 21:30:10 +05:30
|
|
|
isNormalUser = true;
|
2024-06-21 19:48:25 +05:30
|
|
|
extraGroups = [ "docker" "libvirtd" "networkmanager" "wheel" ];
|
2024-06-16 21:30:10 +05:30
|
|
|
shell = pkgs.zsh;
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPxDgoV9yf+yPnp4pt5EWgo7uC25W66ehoL/rlshVW+8 Skipper"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPodFFNUK16y9bjHVMhr+Ykro3v1FVLbmqKg7mjMv3Wz Kowalski"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|