Reorganize repository
This commit is contained in:
parent
da1824edb6
commit
0fc6c32a47
124 changed files with 16295 additions and 1229 deletions
37
modules/games/zeroad/default.nix
Normal file
37
modules/games/zeroad/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ 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.opengl.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