Add forgejo
This commit is contained in:
parent
4f411004e6
commit
6cf61cb4f5
7 changed files with 136 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
|||
_: {
|
||||
{ pkgs, ...}: {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."blog.lomig.me" = {
|
||||
|
|
@ -10,4 +10,25 @@ _: {
|
|||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/www/lomig 0755 lomig users -"
|
||||
];
|
||||
systemd.services.hugo-blog-build = {
|
||||
description = "Build Hugo Blog";
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = /home/lomig/scripts/blog-sync-and-build.sh;
|
||||
User = "lomig";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers.hugo-blog-build = {
|
||||
description = "Daily Hugo Blog Build";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily 06:00";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue