summaryrefslogtreecommitdiffstats
path: root/lass/2configs/minecraft.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-01-16 19:15:31 +0100
committerjeschli <jeschli@gmail.com>2018-01-16 19:15:31 +0100
commit595b5de0bd57e3f9567ff8554fd49e43b3d9c7b1 (patch)
treeeb273130855884aaa5cc28bba0b70b9e2dc7540d /lass/2configs/minecraft.nix
parent05b3e4b0cb4e83dcc84939919ca0a83e694606bf (diff)
parent74d1531be988057ccadd3de5184d915dcf84c92d (diff)
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'lass/2configs/minecraft.nix')
-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"; }
+ ];
+}