ops/nixos/fup: switch to using config file
This commit is contained in:
parent
8271714a18
commit
a99e0309c5
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
||||||
{ config, options, depot, lib, ... }:
|
{ config, options, depot, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (depot.ops) secrets;
|
inherit (depot.ops) secrets;
|
||||||
sock = "/run/fup.sock";
|
sock = "/run/fup.sock";
|
||||||
pkg = depot.web.fup;
|
pkg = depot.web.fup;
|
||||||
|
|
||||||
|
format = pkgs.formats.yaml {};
|
||||||
|
fupConfig = format.generate "fup.yaml" secrets.fup.config;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = with lib; {
|
options = with lib; {
|
||||||
|
@ -69,7 +72,7 @@ in
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
EnvironmentFile = secrets.fup.environment;
|
EnvironmentFile = secrets.fup.environment;
|
||||||
ExecStart = "${pkg}/bin/fup serve --listen=systemd --root=https://p.lukegb.com/ --bucket-url=s3://public-lukegb-fup?endpoint=objdump.zxcvbnm.ninja®ion=london";
|
ExecStart = "${pkg}/bin/fup serve --config=${fupConfig}";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue