update flake
This commit is contained in:
parent
9721499489
commit
55bea85611
3 changed files with 122 additions and 82 deletions
14
option.nix
14
option.nix
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue