Add filebrowser to alt
This commit is contained in:
parent
e2f3f5d30e
commit
8732c6a652
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue