update deps
This commit is contained in:
parent
5bef1a36a9
commit
8c5d2b306c
4 changed files with 22 additions and 40 deletions
17
flake.nix
17
flake.nix
|
@ -39,18 +39,7 @@
|
|||
nixosModules.default = { config, lib, pkgs, options, ... }:
|
||||
let
|
||||
cfg = config.services.sanic;
|
||||
configFile = pkgs.writeText "config.ini" ''
|
||||
[ui]
|
||||
host=${cfg.ui.host}
|
||||
port=${toString cfg.ui.port}
|
||||
tls=${if cfg.ui.tls then "true" else "false"}
|
||||
certificate=${toString cfg.ui.certificate}
|
||||
key=${toString cfg.ui.key}
|
||||
|
||||
[mpd]
|
||||
host=${cfg.backend.host}
|
||||
port=${toString cfg.backend.port}
|
||||
'';
|
||||
configFile = pkgs.writeText "config.ini" (pkgs.lib.generators.toINI {} cfg);
|
||||
execCommand = "${cfg.package}/bin/sanic -c '${configFile}'";
|
||||
in
|
||||
{
|
||||
|
@ -66,7 +55,7 @@
|
|||
example = lib.literalExpression ''
|
||||
{
|
||||
host = "[::1]";
|
||||
port = 443;
|
||||
port = 8443;
|
||||
tls = true;
|
||||
certificate = "${config.security.acme.certs."sanic.example.com".directory}/fullchain.pem";
|
||||
key = "${config.security.acme.certs."sanic.example.com".directory}/key.pem";
|
||||
|
@ -86,7 +75,7 @@
|
|||
};
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 80;
|
||||
default = 8080;
|
||||
description = "Port to listen on.";
|
||||
};
|
||||
tls = lib.mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue