ssh8022: expand to more clients and servers
This commit is contained in:
parent
2beabf8ad8
commit
bc6cc6eb84
@ -10,6 +10,12 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
|
|
||||||
|
age.secrets.ssh8022-server = {
|
||||||
|
file = ../../secrets/ssh8022.age;
|
||||||
|
owner = "spiped";
|
||||||
|
path = "/var/lib/spiped/ssh8022.key";
|
||||||
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
initrd = {
|
initrd = {
|
||||||
@ -67,6 +73,11 @@ in
|
|||||||
sshguard.enable = true;
|
sshguard.enable = true;
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
||||||
|
ssh8022.server = {
|
||||||
|
enable = true;
|
||||||
|
keyfile = config.age.secrets.ssh8022-server.path;
|
||||||
|
};
|
||||||
|
|
||||||
remote-builder.server = {
|
remote-builder.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
uidgid = myData.uidgid.remote-builder;
|
uidgid = myData.uidgid.remote-builder;
|
||||||
|
@ -373,6 +373,7 @@ in
|
|||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
hass.enable = true;
|
hass.enable = true;
|
||||||
syncthing-relay.enable = true;
|
syncthing-relay.enable = true;
|
||||||
|
|
||||||
ssh8022.server = {
|
ssh8022.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyfile = config.age.secrets.ssh8022-server.path;
|
keyfile = config.age.secrets.ssh8022-server.path;
|
||||||
|
@ -18,7 +18,7 @@ in
|
|||||||
|
|
||||||
age.secrets.ssh8022-client = {
|
age.secrets.ssh8022-client = {
|
||||||
file = ../../secrets/ssh8022.age;
|
file = ../../secrets/ssh8022.age;
|
||||||
owner = "motiejus";
|
mode = "444";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
@ -89,7 +89,6 @@ in
|
|||||||
ssh8022.client = {
|
ssh8022.client = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyfile = config.age.secrets.ssh8022-client.path;
|
keyfile = config.age.secrets.ssh8022-client.path;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscale = {
|
tailscale = {
|
||||||
|
@ -10,6 +10,11 @@ in
|
|||||||
../../modules/profiles/btrfs
|
../../modules/profiles/btrfs
|
||||||
];
|
];
|
||||||
|
|
||||||
|
age.secrets.ssh8022-client = {
|
||||||
|
file = ../../secrets/ssh8022.age;
|
||||||
|
mode = "444";
|
||||||
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
@ -67,6 +72,11 @@ in
|
|||||||
services = {
|
services = {
|
||||||
sshguard.enable = false;
|
sshguard.enable = false;
|
||||||
|
|
||||||
|
ssh8022.client = {
|
||||||
|
enable = true;
|
||||||
|
keyfile = config.age.secrets.ssh8022-client.path;
|
||||||
|
};
|
||||||
|
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
verboseLogs = true;
|
verboseLogs = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user