1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/modules/seafile.nix
2019-12-08 22:37:16 +01:00

23 lines
561 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let cfg = config.niveum.seafile;
in {
options.niveum.seafile = {
enable = mkEnableOption "Seafile";
};
config = mkIf cfg.enable {
systemd.user.services.seafile = {
description = "Seafile synchronisation service";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
script = "${pkgs.seafile-client}/bin/seafile-applet";
serviceConfig = {
Restart = "always";
};
};
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
};
}