forked from lukas/nixos-config
10 lines
320 B
Nix
10 lines
320 B
Nix
{
|
|
systemd.services."files" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
description = "internal Static File Server on port 8010";
|
|
serviceConfig = {
|
|
ExecStart = "/run/current-system/sw/bin/static-web-server --host 0.0.0.0 --port 8010 --root /var/www/data --directory-listing true";
|
|
Restart = "always";
|
|
};
|
|
};
|
|
}
|