1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 12:21:08 +01:00

fix(seafile, dropbox): move to user service

This commit is contained in:
Kierán Meinhardt
2019-12-08 22:37:16 +01:00
parent d64c349fe3
commit 5664786ab4
3 changed files with 15 additions and 22 deletions

View File

@@ -4,17 +4,16 @@ let cfg = config.niveum.seafile;
in {
options.niveum.seafile = {
enable = mkEnableOption "Seafile";
user = mkOption { type = types.attrs; };
};
config = lib.mkIf cfg.enable {
systemd.services.seafile = {
config = mkIf cfg.enable {
systemd.user.services.seafile = {
description = "Seafile synchronisation service";
after = [ "network-online.target" ];
after = [ "network.target" ];
wantedBy = [ "default.target" ];
script = "${pkgs.seafile-client}/bin/seafile-applet";
serviceConfig = {
Restart = "always";
User = cfg.user.name;
};
};