feat: Preparing to deploy on marley{centre,net}

This commit is contained in:
punkfairie 2025-03-08 20:20:53 -08:00
parent 48d0b83539
commit 82d6747d8b
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
5 changed files with 24 additions and 14 deletions

View file

@ -15,12 +15,12 @@ in {
# %d - local user's home directory
# %r - remote username
matchBlocks = {
"tty.marleycentre" = {
"marleycentre" = {
hostname = "10.10.10.69";
identityFile = "%d/.ssh/%r@marleycentre";
};
"tty.marleynet" = {
"marleynet" = {
hostname = "10.69.69.2";
port = 222;
identityFile = "%d/.ssh/%r@marleynet";

View file

@ -23,7 +23,6 @@ in {
};
services = {
ddclient = enabled;
docker = enabled;
openssh = enabled;
};

View file

@ -11,7 +11,7 @@ in {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PermitRootLogin = "prohibit-password";
};
};
};

View file

@ -9,12 +9,18 @@ in {
bundles.server = enabled;
};
users.users.marley.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAHOJsPkSBBw03QEFRtxnIdLF3OxNdU6T9LuklnkYfVw marley@nyx"
users.users = {
marley.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAHOJsPkSBBw03QEFRtxnIdLF3OxNdU6T9LuklnkYfVw marley@nyx"
# iphone
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+hMOzQBPmi6Rjw7fYvwn43w1Dgk+GEooGPnQz2RTcK Generated By Termius"
];
# iphone
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+hMOzQBPmi6Rjw7fYvwn43w1Dgk+GEooGPnQz2RTcK Generated By Termius"
];
root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvLgGqr22sT1e+pvda5VDA92uCbVHbd61AjIQOA7pXZ marley@nyx"
];
};
networking.firewall = {
allowedTCPPorts = [6881];

View file

@ -7,14 +7,19 @@ in {
marleyos = {
bundles.server = enabled;
services.ddclient = enabled;
};
users.users.marley.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcKsDGK8C5W6eRsJQSdAOTFVZnkKRWjnyn4iDR8zMi7 marley@nyx"
users.users = {
marley.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcKsDGK8C5W6eRsJQSdAOTFVZnkKRWjnyn4iDR8zMi7 marley@nyx"
# iphone
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+hMOzQBPmi6Rjw7fYvwn43w1Dgk+GEooGPnQz2RTcK Generated By Termius"
];
# iphone
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+hMOzQBPmi6Rjw7fYvwn43w1Dgk+GEooGPnQz2RTcK Generated By Termius"
];
root.openssh.authorizedKeys.keys = [];
};
system.stateVersion = "24.05";
}