Edit default.nix

This commit is contained in:
Aaron Honeycutt 2025-07-28 06:31:54 -06:00
parent cae4a8892f
commit df4e229ddd

View file

@ -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;