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

18 lines
494 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 {
2020-06-10 17:37:25 +02:00
options.niveum.seafile = { enable = mkEnableOption "Seafile"; };
2019-04-19 03:11:51 +02:00
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 ];
};
}