Fixed Paper Server version

This commit is contained in:
Kaybee 2024-11-16 03:50:36 +01:00
parent 557dc18295
commit 2419e06422
2 changed files with 17 additions and 1 deletions

View file

@ -19,7 +19,7 @@ in
enable = true; enable = true;
autoStart = true; autoStart = true;
enableReload = true; enableReload = true;
package = pkgs.paperServers.vanilla-1.21.1; package = pkgs.paperServers.paper-1_21_3-build_25;
whitelist = { whitelist = {
kB01guy = "1ff88b66-beda-4386-85b9-a00a5c27437a"; kB01guy = "1ff88b66-beda-4386-85b9-a00a5c27437a";
}; };

View file

@ -7,6 +7,10 @@
# Configure Nix # Configure Nix
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP
nix.settings.trusted-public-keys = [
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
];
nix.package = pkgs.lix; nix.package = pkgs.lix;
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
@ -40,6 +44,13 @@
]; ];
}; };
users.users.remotebuild = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBHdxVb42GEb/rwrsQx/Wc2v2P+WIq8/WNlF+l31Rl/a Remotebuilds from HyperC"
];
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
@ -64,6 +75,11 @@
servers.survival.enable = true; servers.survival.enable = true;
}; };
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-kb-games-01-priv-key.pem";
};
# Do NOT change this value # Do NOT change this value
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }