38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ self, ... }:
|
|
let
|
|
inherit (builtins) readFile;
|
|
in
|
|
{
|
|
_class = "clan.service";
|
|
|
|
manifest = {
|
|
name = "amarth-services/customer-portal";
|
|
description = "Service to host Amarth Cloud's customer-portal";
|
|
categories = [ "System" "Network" "Containers" "Virtualisation" ];
|
|
readme = readFile ./README.md;
|
|
};
|
|
|
|
#==============================================================================================================
|
|
# Server configuration
|
|
#==============================================================================================================
|
|
roles.server = {
|
|
interface = { lib, ... }:
|
|
let
|
|
inherit (lib) mkOption types toString;
|
|
in
|
|
{
|
|
options = {};
|
|
};
|
|
|
|
perInstance = { instanceName, settings, machine, roles, ... }: {
|
|
nixosModule = { config, pkgs, ... }: {
|
|
imports = [ self.inputs.amarth-customer-portal.nixosModules.default ];
|
|
|
|
services.amarth-customer-portal = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|