2021-12-22 11:54:06 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
|
|
users.mutableUsers = false;
|
2024-04-04 17:37:40 +02:00
|
|
|
users.defaultUserShell = pkgs.fish;
|
2021-12-22 11:54:06 +01:00
|
|
|
sops.secrets.user-root-password.neededForUsers = true;
|
|
|
|
|
2024-04-04 17:37:40 +02:00
|
|
|
programs.fish.enable = true;
|
2021-12-22 11:54:06 +01:00
|
|
|
|
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";
|
2023-11-24 22:07:16 +01:00
|
|
|
hashedPasswordFile = config.sops.secrets.user-root-password.path;
|
2023-01-07 12:56:30 +01:00
|
|
|
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGa+7n7kNzb86pTqaMn554KiPrkHRGeTJ0asY1NjSbpr julien@tower" ];
|
2021-12-28 16:42:30 +01:00
|
|
|
};
|
2021-12-22 11:54:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
}
|