diff options
author | nin <nin@c-base.org> | 2018-01-30 23:06:17 +0100 |
---|---|---|
committer | nin <nin@c-base.org> | 2018-01-30 23:06:17 +0100 |
commit | 6849d7aa4810d5f1f2ec55d852d21812dd1b8002 (patch) | |
tree | b2b236981d6cb2d226fbe239845838a15c22b30e /lass/2configs/minecraft.nix | |
parent | 80c2e23ec028bfda5c0bad0e3269648d34d298b0 (diff) | |
parent | ffc294575cb59585c3bfb6b85fa45fb69cdf1d41 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/minecraft.nix')
-rw-r--r-- | lass/2configs/minecraft.nix | 21 |
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"; } + ]; +} |