2024-05-09 00:48:35 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2021-12-22 11:54:06 +01:00
|
|
|
|
|
|
|
users.mutableUsers = false;
|
2024-04-04 17:37:40 +02:00
|
|
|
users.defaultUserShell = pkgs.fish;
|
2021-12-22 11:54:06 +01:00
|
|
|
|
2024-04-04 17:37:40 +02:00
|
|
|
programs.fish.enable = true;
|
2021-12-22 11:54:06 +01:00
|
|
|
|
2024-05-09 00:48:35 +02:00
|
|
|
age.secrets.user-root-password.file = ../secrets/user-root-password.age;
|
|
|
|
|
2021-12-28 16:42:30 +01:00
|
|
|
users.users.root = {
|
|
|
|
uid = config.ids.uids.root;
|
|
|
|
description = "System administrator";
|
|
|
|
home = "/root";
|
|
|
|
shell = lib.mkForce config.users.defaultUserShell;
|
|
|
|
group = "root";
|
2024-05-09 00:48:35 +02:00
|
|
|
hashedPasswordFile = config.age.secrets.user-root-password.path;
|
2024-12-24 15:07:42 +01:00
|
|
|
openssh.authorizedPrincipals = [ "julien_root" ];
|
2024-05-09 00:48:35 +02:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGa+7n7kNzb86pTqaMn554KiPrkHRGeTJ0asY1NjSbpr julien@tower"
|
2024-10-13 12:36:15 +02:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMAa0wll9ildhgPiV0DhgJXXtw3TQr5VkNxxxPspHSbX julien@gallifrey"
|
2024-05-09 00:48:35 +02:00
|
|
|
];
|
2021-12-28 16:42:30 +01:00
|
|
|
};
|
2021-12-22 11:54:06 +01:00
|
|
|
}
|