mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
21 lines
515 B
Nix
21 lines
515 B
Nix
|
{ config, lib, pkgs, user, ... }:
|
||
|
{
|
||
|
networking.firewall.allowedTCPPorts = [ 5001 ];
|
||
|
networking.firewall.allowedUDPPorts = [ 5001 ];
|
||
|
|
||
|
environment.systemPackages = with pkgs; [ dufs ];
|
||
|
|
||
|
systemd.services.share = {
|
||
|
description = "Start dufs for quick sharing of files";
|
||
|
wantedBy = [ "default.target" ];
|
||
|
|
||
|
restartIfChanged = true;
|
||
|
|
||
|
serviceConfig = {
|
||
|
Type = "simple";
|
||
|
Restart = "always";
|
||
|
ExecStart = "${pkgs.dufs}/bin/dufs -p 5001 -A /engi/apps/dufs/share";
|
||
|
};
|
||
|
};
|
||
|
}
|