games: remove some games I don't play anymore
This commit is contained in:
parent
b97c629fa1
commit
0f2eef0465
4 changed files with 0 additions and 68 deletions
|
@ -6,9 +6,7 @@
|
|||
./mumble
|
||||
./particles
|
||||
./steam
|
||||
./teeworlds
|
||||
./tetris
|
||||
./zeroad
|
||||
];
|
||||
|
||||
options.chvp.games.enable = lib.mkOption {
|
||||
|
@ -21,7 +19,6 @@
|
|||
minecraft.client = lib.mkDefault false;
|
||||
mumble.enable = lib.mkDefault true;
|
||||
steam.enable = lib.mkDefault true;
|
||||
zeroad.client = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
chvp.games.teeworlds.server = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.games.teeworlds.server {
|
||||
services.teeworlds = {
|
||||
enable = true;
|
||||
openPorts = true;
|
||||
extraOptions = [
|
||||
"sv_gametype ctf"
|
||||
"sv_maprotation ctf1 ctf2 ctf3 ctf4 ctf5 ctf6 ctf7 ctf8"
|
||||
"sv_map ctf1"
|
||||
"sv_scorelimit 250"
|
||||
"sv_teamdamage 1"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
chvp.games.zeroad = {
|
||||
client = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
server = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.chvp.games.zeroad.server || config.chvp.games.zeroad.client) {
|
||||
chvp.base.zfs.homeLinks = [
|
||||
{ path = ".config/0ad"; type = "cache"; }
|
||||
];
|
||||
|
||||
# Needs to be here, since a headless server probably doesn't have this enabled yet.
|
||||
hardware.graphics.enable = true;
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.zeroad ];
|
||||
};
|
||||
|
||||
networking.firewall = lib.mkIf config.chvp.games.zeroad.server {
|
||||
allowedTCPPorts = [ 20595 ];
|
||||
allowedUDPPorts = [ 20595 ];
|
||||
};
|
||||
services.xrdp = lib.mkIf config.chvp.games.zeroad.server {
|
||||
enable = true;
|
||||
defaultWindowManager = "${pkgs.icewm}/bin/icewm";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue