parent
8d46d0d60b
commit
a4671a524f
5 changed files with 37 additions and 5 deletions
27
modules/nixos/services/games/openrct.nix
Normal file
27
modules/nixos/services/games/openrct.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, pkgs, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.services.games.openrct;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.games.openrct = {
|
||||
enable = mkEnableOption "OpenRCT2";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
openrct2
|
||||
];
|
||||
|
||||
systemd.services.openrct = {
|
||||
enable = true;
|
||||
after = [ "network.target"];
|
||||
description = "OpenRCT2 Server";
|
||||
serviceConfig = {
|
||||
Type = "";
|
||||
ExecStart = lib.getExe pkgs.openrct2;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue