modules/system-recovery: init
This commit is contained in:
parent
05a42b9dc8
commit
53738508ca
2 changed files with 36 additions and 0 deletions
|
@ -14,6 +14,7 @@ let
|
||||||
shell-config = import ./shell-config;
|
shell-config = import ./shell-config;
|
||||||
ssh = import ./ssh;
|
ssh = import ./ssh;
|
||||||
sss = import ./sss;
|
sss = import ./sss;
|
||||||
|
system-recovery = import ./system-recovery;
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
modules = aspects;
|
modules = aspects;
|
||||||
|
@ -28,6 +29,7 @@ in rec {
|
||||||
server = [
|
server = [
|
||||||
deploy-rs-receiver
|
deploy-rs-receiver
|
||||||
nix-config-server
|
nix-config-server
|
||||||
|
system-recovery
|
||||||
] ++ base ++ networking;
|
] ++ base ++ networking;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
34
modules/system-recovery/default.nix
Normal file
34
modules/system-recovery/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
users.users = {
|
||||||
|
sa = {
|
||||||
|
isNormalUser = true;
|
||||||
|
initialHashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
hashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
extraGroups = [ "wheel" ];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmdWfmAs/0rno8zJlhBFMY2SumnHbTNdZUXJqxgd9ON max@jericho"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5C7mC5S2gM0K6x0L/jNwAeQYbFSzs16Q73lONUlIkL max@TITAN"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
sa_max = {
|
||||||
|
isNormalUser = true;
|
||||||
|
uid = 2000;
|
||||||
|
initialHashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
hashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
group = "wheel";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmdWfmAs/0rno8zJlhBFMY2SumnHbTNdZUXJqxgd9ON max@jericho"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5C7mC5S2gM0K6x0L/jNwAeQYbFSzs16Q73lONUlIkL max@TITAN"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
sa_alex = {
|
||||||
|
isNormalUser = true;
|
||||||
|
uid = 2001;
|
||||||
|
initialHashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
hashedPassword = "$6$/WpFHuBXPJHZx$nq0YnOvSTSqu2B3OkPITSPCKUPVfPK04wbPpK/Ntla2MRWJb5eRzKxIK.ASBq0lKay7xpZW0PnQ58qnDTBkf8/";
|
||||||
|
group = "wheel";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue