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

20 lines
500 B
Nix
Raw Normal View History

2019-04-19 03:11:51 +02:00
{ 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 = {
2019-06-08 14:57:22 +02:00
description = "Seafile synchronisation service";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
2019-06-08 14:57:22 +02:00
script = "${pkgs.seafile-client}/bin/seafile-applet";
};
2019-04-19 03:11:51 +02:00
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
};
}