Files
Lennart J. Kurzweg (Nx2) 6d2f90486f remove dart-sass
2025-06-18 15:31:20 +02:00

32 lines
629 B
Nix

{ pkgs, ... }@all: with all;
let p = pkgs; in
{
environment.systemPackages = with p; [
hugo
];
users = {
groups = {
"hugo".name = "hugo";
};
users = {
"${hyper.user}".extraGroups = [ "hugo" ];
"nginx".extraGroups = [ "hugo" ];
"hugo" = {
isSystemUser = true;
group = "hugo";
};
};
};
systemd.services."hugo" = {
script = with p; /* shell */ ''
${hugo}/bin/hugo serve --port 8000 --bind 10.0.1.1 --baseURL http://10.0.1.1:8000 -s /var/lib/hugo/nx2site/
'';
serviceConfig = {
Type = "simple";
User = "hugo";
};
};
}