Smos

A comprehensive self-management system

Setting up your own Smos server on Nixos

A NixOs module has to run your own smos server on NixOs has been provided at nix/module.nix and can be used as follows:

{ lib, pkgs, config, ... }:
let
  smos-production = (
    import (
      builtins.fetchGit {
        url = "https://github.com/NorfairKing/smos.git";
        rev = "0000000000000000000000000000000000000000"; # Use a recent commit hash
        ref = "master";
      } + "/nix/module.nix"
    ) { envname = "production"; }
  );
in
{
  imports = [
    smos-production
  ];
  config = {
    services.smos = {
      production = {
        enable = true;
        docs-site = {
          enable = true;
          hosts = [ "smos.example.com" ];
          port = 8401;
        };
        sync-server = {
          enable = true;
          log-level = "Warn";
          hosts = [ "api.smos.example.com" ];
          port = 8402;
        };
      };
    };
  };
}