refactor: hosts/
This commit is contained in:
1 parent
cedfbd6ef6
commit
3e662f72f7
21 files changed
+140
-14
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 25565 25567 ];
|
||||
allowedUDPPorts = [ 25565 25567];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pkgs.jdk21
|
||||
];
|
||||
|
||||
users.users = {
|
||||
minecraft = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.bashInteractive;
|
||||
openssh.authorizedKeys.keys = [
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user