Edit default.nix
This commit is contained in:
parent
cae4a8892f
commit
df4e229ddd
1 changed files with 18 additions and 1 deletions
|
|
@ -1,10 +1,27 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
systemd.user.services."website-zola-build" = {
|
||||
enable = true;
|
||||
description = "rebuild zola website";
|
||||
serviceConfig = {
|
||||
ExecStart = "/run/current-system/sw/bin/zola -r /mnt/DATA/Website/ahoneybun-net build";
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
systemd.user.timers."website-zola-build" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "2h";
|
||||
OnUnitActiveSec = "7h";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."ahoneybun.net" = {
|
||||
root = "/mnt/DATA/Website/ahoneybun.net/public";
|
||||
root = "/mnt/DATA/Website/ahoneybun-net/public";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
default_type text/html;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue