Add filebrowser to alt
This commit is contained in:
@@ -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. It‘s perfectly fine and recommended to leave
|
||||
|
||||
Reference in New Issue
Block a user