update flake

This commit is contained in:
XenGi 2025-12-25 13:02:51 +01:00
parent 9721499489
commit 55bea85611
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
3 changed files with 122 additions and 82 deletions

View file

@ -1,8 +1,14 @@
{ config, lib, pkgs, options, ... }:
{
config,
lib,
pkgs,
options,
...
}:
let
cfg = config.services.sanic;
configFile = pkgs.writeText "config.ini" (pkgs.lib.generators.toINI {} cfg);
configFile = pkgs.writeText "config.ini" (pkgs.lib.generators.toINI { } cfg);
execCommand = "${cfg.package}/bin/sanic -c '${configFile}'";
in
{
@ -11,7 +17,9 @@ in
package = lib.mkOption {
description = "Package to use.";
type = lib.types.package;
default = sanic;
default = lib.literalExpression ''
pkgs.sanic
'';
};
ui = lib.mkOption {
description = "Setting for HTTP(S) UI.";