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