ssh8022: expand to more clients and servers

This commit is contained in:
Motiejus Jakštys 2024-08-25 11:37:56 +03:00
parent 2beabf8ad8
commit bc6cc6eb84
4 changed files with 23 additions and 2 deletions

View File

@ -10,6 +10,12 @@ in
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
age.secrets.ssh8022-server = {
file = ../../secrets/ssh8022.age;
owner = "spiped";
path = "/var/lib/spiped/ssh8022.key";
};
boot = {
loader.systemd-boot.enable = true;
initrd = {
@ -67,6 +73,11 @@ in
sshguard.enable = true;
tailscale.enable = true;
ssh8022.server = {
enable = true;
keyfile = config.age.secrets.ssh8022-server.path;
};
remote-builder.server = {
enable = true;
uidgid = myData.uidgid.remote-builder;

View File

@ -373,6 +373,7 @@ in
gitea.enable = true;
hass.enable = true;
syncthing-relay.enable = true;
ssh8022.server = {
enable = true;
keyfile = config.age.secrets.ssh8022-server.path;

View File

@ -18,7 +18,7 @@ in
age.secrets.ssh8022-client = {
file = ../../secrets/ssh8022.age;
owner = "motiejus";
mode = "444";
};
boot = {
@ -89,7 +89,6 @@ in
ssh8022.client = {
enable = true;
keyfile = config.age.secrets.ssh8022-client.path;
};
tailscale = {

View File

@ -10,6 +10,11 @@ in
../../modules/profiles/btrfs
];
age.secrets.ssh8022-client = {
file = ../../secrets/ssh8022.age;
mode = "444";
};
boot = {
kernelModules = [ "kvm-intel" ];
loader.systemd-boot.enable = true;
@ -67,6 +72,11 @@ in
services = {
sshguard.enable = false;
ssh8022.client = {
enable = true;
keyfile = config.age.secrets.ssh8022-client.path;
};
tailscale = {
enable = true;
verboseLogs = true;