summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-01-16 00:02:38 +0100
committerlassulus <lassulus@lassul.us>2018-01-16 00:03:19 +0100
commit291a3347e9baedd35baf855e58dc98caef066d69 (patch)
treee19f6ac2161f3048d0bc5bb6f4b892f331fecce3 /lass/2configs
parentb713edf2f844e9cc5ca1cc00a9ad4113ecfad40b (diff)
l: add minecraft.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/minecraft.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/2configs/minecraft.nix b/lass/2configs/minecraft.nix
new file mode 100644
index 000000000..aa33dcccc
--- /dev/null
+++ b/lass/2configs/minecraft.nix
@@ -0,0 +1,21 @@
+{ pkgs, ... }:
+
+{
+ users.users = {
+ mc = {
+ name = "mc";
+ description = "user playing mc";
+ home = "/home/mc";
+ createHome = true;
+ useDefaultShell = true;
+ packages = with pkgs; [
+ tmux
+ ];
+ };
+ };
+ krebs.per-user.mc.packages = [ pkgs.jdk ];
+ krebs.iptables.tables.filter.INPUT.rules = [
+ { predicate = "-p tcp --dport 25565"; target = "ACCEPT"; }
+ { predicate = "-p udp --dport 25565"; target = "ACCEPT"; }
+ ];
+}