mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(syncplay): move to hakurei
This commit is contained in:
parent
ed909897b3
commit
47d830eaed
8 changed files with 151 additions and 37 deletions
25
modules/system/exports/syncplay.nix
Normal file
25
modules/system/exports/syncplay.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
gensokyo-zone,
|
||||
...
|
||||
}: let
|
||||
inherit (gensokyo-zone.lib) mkAlmostOptionDefault;
|
||||
inherit (lib.modules) mkIf;
|
||||
in {
|
||||
config.exports.services.syncplay = {config, ...}: {
|
||||
displayName = mkAlmostOptionDefault "Syncplay";
|
||||
nixos = {
|
||||
serviceAttr = "syncplay";
|
||||
assertions = mkIf config.enable [
|
||||
(nixosConfig: {
|
||||
assertion = config.ports.default.port == nixosConfig.services.syncplay.port;
|
||||
message = "port mismatch";
|
||||
})
|
||||
];
|
||||
};
|
||||
ports.default = {
|
||||
port = mkAlmostOptionDefault 8999;
|
||||
protocol = "tcp";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue