init
This commit is contained in:
commit
f7d48d286a
16 changed files with 519 additions and 0 deletions
26
services/blog.nix
Executable file
26
services/blog.nix
Executable file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
elmskell-blog,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
ferron-conf-nix = {
|
||||
global = {
|
||||
secure = false;
|
||||
wwwroot = "${elmskell-blog.packages.x86_64-linux.default}/wwwroot";
|
||||
};
|
||||
};
|
||||
in {
|
||||
systemd.services.ferron = {
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe pkgs.ferron} --config=/etc/ferron.yaml";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."ferron.yaml" = {
|
||||
source = (pkgs.formats.yaml {}).generate "" ferron-conf-nix;
|
||||
mode = "644";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue