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

feat(seafile): declaratively configure

This commit is contained in:
2021-04-07 09:19:00 +02:00
parent 4f8f3751f4
commit 0f0b5658be
5 changed files with 21 additions and 20 deletions

View File

@@ -3,6 +3,5 @@
./constants.nix
./dropbox.nix
./retiolum.nix
./seafile.nix
];
}

View File

@@ -1,17 +0,0 @@
{ 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 ];
};
}