feat: add public ssh key to the secrets file

This commit is contained in:
Jet Pham 2026-02-17 00:55:23 -08:00
parent 768ce36509
commit 3b460e93e6
No known key found for this signature in database
6 changed files with 9 additions and 9 deletions

4
.gitignore vendored
View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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;

View file

@ -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";
};
}; };
} }

View file

@ -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...";
}; };
} }