nixpkgs/nixos/modules/services/x11/gdnc.nix
Artyom Shalkhakov d3d580ebbe gnustep: cleanup
Major clean-up. Everything builds fine.
2016-08-16 21:00:27 +00:00

35 lines
No EOL
988 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.gdnc;
in {
options = {
services.gdnc.enable = mkOption {
type = types.bool;
default = false;
example = true;
description = "Enable gdnc, the GNUstep distributed notification center";
};
};
config = mkIf cfg.enable {
assertions = singleton {
assertion = config.services.gdnc.enable -> config.services.gdomap.enable;
message = "Cannot start gdnc without starting gdomap";
};
environment.systemPackages = [ pkgs.gnustep_make pkgs.gnustep_base ];
systemd.services.gdnc = {
path = [ pkgs.gnustep_base ];
description = "gdnc: GNUstep distributed notification center";
requires = [ "gdomap.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''${pkgs.gnustep_base}/bin/gdnc --verbose'';
Restart = "always";
RestartSec = 10;
TimeoutStartSec = "30";
Type = "simple";
};
};
};
}