1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/modules/seafile.nix
Kierán Meinhardt d8a4d4eedf chore: nixfmt
2020-06-10 17:37:25 +02:00

18 lines
494 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";
};
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
};
}