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

modularize

This commit is contained in:
Kierán Meinhardt
2019-04-19 03:11:51 +02:00
parent a90799f39b
commit a763c63de4
58 changed files with 1317 additions and 1172 deletions

14
modules/seafile.nix Normal file
View File

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