feat: add public ssh key to the secrets file
This commit is contained in:
parent
768ce36509
commit
3b460e93e6
6 changed files with 9 additions and 9 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -7,7 +7,3 @@ secrets.nix
|
||||||
|
|
||||||
# Only track the example file
|
# Only track the example file
|
||||||
!secrets.nix.example
|
!secrets.nix.example
|
||||||
|
|
||||||
# IDEs
|
|
||||||
.idea
|
|
||||||
.vscode
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ nixos config for the hetzner vps.
|
||||||
services:
|
services:
|
||||||
- forgejo (git.extremist.software)
|
- forgejo (git.extremist.software)
|
||||||
- stalwart (mail.extremist.software)
|
- stalwart (mail.extremist.software)
|
||||||
- searx (search.extremist.software)
|
- searxng (search.extremist.software)
|
||||||
- conduit (matrix.extremist.software)
|
- conduit (matrix.extremist.software)
|
||||||
- minecraft (extremist.software)
|
- minecraft (extremist.software)
|
||||||
- caddy (reverse proxy)
|
- caddy (reverse proxy)
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,7 @@
|
||||||
|
|
||||||
# Users
|
# Users
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
# User should add their key here
|
config.mySecrets.sshPublicKey
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5..."
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# SSH - Secure it
|
# SSH - Secure it
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@
|
||||||
# Use fetchPackwizModpack to get the server with mods
|
# Use fetchPackwizModpack to get the server with mods
|
||||||
package = pkgs.fetchPackwizModpack {
|
package = pkgs.fetchPackwizModpack {
|
||||||
url = "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/1.20.1/pack.toml";
|
url = "https://raw.githubusercontent.com/Fabulously-Optimized/fabulously-optimized/main/Packwiz/1.20.1/pack.toml";
|
||||||
packHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; # User must update this hash!
|
packHash = "sha256-eoaJQtlb6BfCFVG8iUYxVQD5woLq+kecJj6GvBA1IqQ="; # User must update this hash!
|
||||||
};
|
};
|
||||||
serverProperties = {
|
serverProperties = {
|
||||||
motd = "Extremist Software Optimized Server";
|
motd = "Extremist Software Minecraft Server";
|
||||||
difficulty = "hard";
|
difficulty = "hard";
|
||||||
view-distance = 10;
|
view-distance = 10;
|
||||||
simulation-distance = 10;
|
simulation-distance = 10;
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,9 @@ with lib;
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Tailscale Auth Key";
|
description = "Tailscale Auth Key";
|
||||||
};
|
};
|
||||||
|
sshPublicKey = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "SSH Public Key for Root User";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,6 @@
|
||||||
searxKey = "changeme_searx_secret";
|
searxKey = "changeme_searx_secret";
|
||||||
minecraftRcon = "changeme_rcon";
|
minecraftRcon = "changeme_rcon";
|
||||||
tailscaleKey = "tskey-auth-PLACEHOLDER";
|
tailscaleKey = "tskey-auth-PLACEHOLDER";
|
||||||
|
sshPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA...";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue