mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
15 lines
370 B
Nix
15 lines
370 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let cfg = config.niveum.seafile;
|
|
in {
|
|
options.niveum.seafile = {
|
|
enable = mkEnableOption "Seafile";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.xserver.displayManager.sessionCommands = "${pkgs.seafile-client}/bin/seafile-applet &";
|
|
|
|
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
|
|
};
|
|
}
|