Add filebrowser to alt

This commit is contained in:
Alexander Wainwright
2025-06-28 11:48:29 +10:00
parent e2f3f5d30e
commit 8732c6a652

View File

@@ -24,6 +24,22 @@
filebrowser
];
# run filebrowser
systemd.services.filebrowser = {
description = "Filebrowser server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "alex";
WorkingDirectory = "/home/alex/filebrowser";
ExecStart = "${pkgs.filebrowser}/bin/filebrowser --root files --address 0.0.0.0";
Restart = "on-failure";
RestartSec = "5s";
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave