A NixOs module has to run your own smos server on NixOs has been provided at nix/nixos-module.nix
and can be used as follows:
{ lib, pkgs, config, ... }:
let
smos-production = (
import (
builtins.fetchGit {
url = "https://github.com/NorfairKing/smos";
rev = "0000000000000000000000000000000000000000"; # Put a recent commit hash here.
ref = "master";
} + "/nix/nixos-module.nix"
) { envname = "production"; }
);
in
{
imports = [
smos-production
];
config = {
services.smos = {
production = {
enable = true;
docs-site = {
enable = true;
hosts = [ "docs.smos.example.com" ];
port = 8401;
web-url = "https://${builtins.head config.services.smos.production.web-server.hosts}";
};
api-server = {
enable = true;
log-level = "Warn";
hosts = [ "api.smos.example.com" ];
port = 8402;
local-backup = {
enable = true;
};
};
web-server = {
enable = true;
log-level = "Warn";
hosts = [ "smos.example.com" ];
port = 8403;
docs-url = "https://${builtins.head config.services.smos.production.docs-site.hosts}";
api-url = "https://${builtins.head config.services.smos.production.api-server.hosts}";
};
};
};
};
}